﻿<%@ Page Title="" Language="C#" MasterPageFile="~/car-insurance/proposalforms/CarInsuranceProposalMasterPage.master"
    Async="true" AutoEventWireup="true" CodeFile="liberty_proposal_form.aspx.cs"
    Inherits="car_Insurance_new_proposalforms_liberty_proposal_form" %>

<%@ Register Src="~/controls/usrNoJS.ascx" TagName="usrNoJS" TagPrefix="ucNoJS" %>
<%@ Register Src="~/controls/usrPhoneNo.ascx" TagName="usrPhoneNo" TagPrefix="uc1" %>
<%@ Register Src="~/controls/usrDate.ascx" TagName="usrDate" TagPrefix="uc2" %>
<%@ Register Src="~/controls/usrIdNumber.ascx" TagName="usrIdNumber" TagPrefix="uc3" %>
<%@ Register Src="~/controls/usrNationality.ascx" TagName="usrNationality" TagPrefix="uc4" %>
<%@ Register Src="~/controls/usrIdType.ascx" TagName="usrIdType" TagPrefix="uc5" %>
<%@ Register Src="~/controls/usrCompanyLogoByServices.ascx" TagName="usrCompanyLogoByServices"
    TagPrefix="uc6" %>
<%@ Register Src="~/controls/usrIdType.ascx" TagName="usrIdType" TagPrefix="uc7" %>
<%@ Register Src="~/controls/usrSalutation.ascx" TagName="usrSalutation" TagPrefix="uc8" %>
<%@ Register Src="~/controls/usrGender.ascx" TagName="usrGender" TagPrefix="uc9" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script src="../../includes/LoadingProgress.js" type="text/javascript"></script>

    <div id="container">
        <div id="nav_top">
            <div class="left pad_8yr">
                <%-- <asp:ImageButton ID="imgbtnBackTop" runat="server" ImageUrl="/images/forms_proposal/button/back.png"
                    OnClick="imgbtnBackTop_Click" OnClientClick="return confirm('Are you sure to go back?');" />--%>
                <a href="/car-insurance/results.aspx" id="lnkBackTop" onclick="return confirm('Are you sure to go back?');">
                    <img src="/images/forms_proposal/button/back.png" alt="Back" /></a>
            </div>
            <div class="right pad_8yr">
                <img src="/images/forms_proposal/nav/logo_comparexpress.png" alt="CompareXpress" /></div>
        </div>
        <ucNoJS:usrNoJS ID="usrNoJS1" runat="server" />
        <div class="form_selection" style="display: none">
            <h3>
                <asp:Label ID="lblProvider" runat="server"></asp:Label></h3>
            <asp:Label ID="lblPackageHead" runat="server" Text="WorkShop Plan : " CssClass="fs_lbl"></asp:Label>
            <asp:Label ID="lblPackage" runat="server" CssClass="fs_lbl_m"></asp:Label>
            <asp:Label ID="lblPremiumHead" runat="server" Text="Annual Premium : " CssClass="fs_lbl_r"></asp:Label>
            <asp:Label ID="lblPremium" runat="server"></asp:Label>
        </div>
        <div id="divLoading">
            <table style="width: 100%; height: 500px">
                <tr>
                    <td align="center" valign="middle">
                        <img src="../../images/loading7.gif" alt="Loading" align="absmiddle" />
                        <span id="divMessage">Please wait...</span><span id="divPgrPercent">0%</span>
                    </td>
                </tr>
            </table>
        </div>
        <asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" runat="server">
        </asp:ScriptManager>
        <div runat="server" id="divAgentRequest" visible="false">
            Agent ID :<asp:Label ID="lblAgentId" runat="server" />
            Car ID :<asp:Label ID="lblCarId" runat="server" />
            Customer ID:
            <asp:Label ID="lblCustomerId" runat="server" />
            Car Result ID :<asp:Label ID="lblCarResultId" runat="server" />
            Provider Company ID :<asp:Label ID="lblProviderCompanyId" runat="server" />
            Car More Detail ID:<asp:Label ID="lblCarMoreDetailId" runat="server" />
            Customer Name:<asp:Label ID="lblCustomerGivenName" runat="server" />
            Mobile No:<asp:Label ID="lblCustomerMobileNo" runat="server" />
        </div>
        <div id="divContent" style="display: none;">
            <div id="contentBody">
                <div id="header">
                    <div class="seperator">
                    </div>
                    <div class="right" style="width: 240px">
                        <div class="quotesum_button">
                            <img src="/images/forms_proposal/button/quotesum.png" width="240" height="73" alt="Quote Summary" /></div>
                    </div>
                    <h1>
                        Online Car Insurance Proposal Form</h1>
                    <div id="divAgent" style="font-size: small; font-weight: bold" runat="server" visible="false">
                        <br />
                        Agent Name :
                        <asp:Label runat="server" ID="lblAgentName" />
                        <asp:HyperLink runat="server" onclick="return confirm('Are you confirm?');" ID="hplLogout"
                            Text="Sign Out" NavigateUrl="~/user/logout.aspx" />
                    </div>
                    <div class="seperator">
                    </div>
                    <div class="quotesum">
                        <div class="top">
                        </div>
                        <div id="divQuoteSummery" class="body pad_15x">
                            <!-- QUOTE SUMMARY | Start -->
                            <div class="w26per left pad_25xr">
                                <h1>
                                    Selected Insurer</h1>
                                <p>
                                    <asp:Label ID="lblSelectInsurer" runat="server"></asp:Label></p>
                                <h1>
                                    Workshop Plan</h1>
                                <p>
                                    <asp:Label ID="lblWorkshopPlan" runat="server"></asp:Label></p>
                                <h1>
                                    Car Make &amp; Model</h1>
                                <p>
                                    <asp:Label ID="lblCarMakemodel" runat="server"></asp:Label></p>
                            </div>
                            <div class="w21per left pad_25xr">
                                <h1>
                                    Year of Registration</h1>
                                <p>
                                    <asp:Label ID="lblYrofRegister" runat="server"></asp:Label></p>
                                <h1>
                                    Applicable/Renewal NCD</h1>
                                <p>
                                    <asp:Label ID="lblNCDRenewal" runat="server"></asp:Label></p>
                                <h1>
                                    Premium</h1>
                                <p>
                                    <asp:Label ID="lblPremiums" runat="server"></asp:Label></p>
                            </div>
                            <div class="w21per left pad_25xr">
                                <h1>
                                    Cover Commencement Date</h1>
                                <p>
                                    <asp:Label ID="lblCommencementdate" runat="server"></asp:Label></p>
                                <h1>
                                    Offpeak Vehicle?</h1>
                                <p>
                                    <asp:Label ID="lblOffpeakvehile" runat="server"></asp:Label></p>
                                <h1>
                                    Offence-Free Driving/COM</h1>
                                <p>
                                    <asp:Label ID="lblOffenceDriving" runat="server"></asp:Label></p>
                            </div>
                            <div class="w21per left pad_25xr">
                                <h1>
                                    &nbsp;</h1>
                                <p>
                                    &nbsp;</p>
                                <h1>
                                    Quote Reference Number</h1>
                                <p>
                                    <asp:Label ID="lblQRefNo" runat="server"></asp:Label></p>
                                <div id="divPromoVoucher" runat="server" visible="false">
                                    <p>
                                        <asp:Image ImageAlign="AbsMiddle" runat="server" ID="imgPromoAdd1" ToolTip="Free S$100 Petrol Voucher by CompareXpress"
                                            Height="45" Width="40" Visible="false" ImageUrl="~/images/promo/100-pv.gif" />
                                        <asp:Image ImageAlign="AbsMiddle" runat="server" ID="imgPromoAdd2" ToolTip="Free S$50 Petrol Voucher by CompareXpress"
                                            Height="45" Width="40" Visible="false" ImageUrl="~/images/promo/50-pv.gif" />
                                        By CompareXpress
                                    </p>
                                </div>
                                <div style="display: none;">
                                    <h1>
                                        Current/Existing NCD</h1>
                                    <p>
                                        <asp:Label ID="lblNCDvalue" runat="server"></asp:Label></p>
                                    <h1>
                                        Any Claims in the Last 3 Years?</h1>
                                    <p>
                                        <asp:Label ID="lblAnyclaim" runat="server"></asp:Label></p>
                                    <h1>
                                        Add Additional Name Driver</h1>
                                    <p>
                                        <asp:Label ID="lblAddDriver" runat="server"></asp:Label>
                                        <span style="display: none;">
                                            <asp:TextBox ID="txtDriverCount" runat="server" Text="0"></asp:TextBox>
                                        </span>
                                    </p>
                                    <h1>
                                        Year of Manufacture</h1>
                                    <p>
                                        <asp:Label ID="lblYrofManufacture" runat="server"></asp:Label></p>
                                </div>
                            </div>
                            <!-- QUOTE SUMMARY | End   -->
                        </div>
                        <div class="bottom">
                        </div>
                    </div>
                </div>
                <div class="seperator">
                </div>
                <div id="body">
                </div>
                <div id="divValidationSummary">
                    <asp:ValidationSummary ID="vsproposal" CssClass="validation_div" runat="server" ValidationGroup="proposal"
                        HeaderText="Please complete the form" />
                    <%--<asp:Label runat="server" ID="lblHeaderMessage" ForeColor="Red" />--%>
                </div>
                <div class="form">
                    <div class="top">
                        <div class="left">
                            <div class="pad_10t pad_35xl white">
                                Online Car Insurance Proposal Form</div>
                        </div>
                        <div class="right">
                        </div>
                    </div>
                    <div class="body">
                        <div class="inner">
                            <div class="pad_20x10y">
                                <div class="norm">
                                    <div class="top_t">
                                    </div>
                                    <div class="body">
                                        <div class="pad_15x">
                                            <h1>
                                                Important Disclaimer</h1>
                                            <p>
                                                <asp:Label runat="server" ID="lblDisclaimer" Text=""></asp:Label></p>
                                            <br />
                                            <div runat="server" id="divDriverDiscount1">
                                                <asp:CheckBox onclick="CheckDriverDiscount1()" ToolTip="Click to confirm" ID="chkDriverDiscount1"
                                                    Text=" I declare that I am the only person driving the car. No other person can drive. I understand that a 10% discount has been incorporated to the premium quoted here,  in return for restricted driving (Policyholder only)."
                                                    Font-Bold="true" ForeColor="Red" runat="server" />
                                                <span>
                                                    <asp:RequiredFieldValidator ControlToValidate="txtDriverDiscount1" ID="rfvDriverDiscount1"
                                                        runat="server" CssClass="validationErrorControl" ErrorMessage="Please confirm for discount option."
                                                        Text="<br/><br/>Please confirm for discount option." ValidationGroup="proposal"></asp:RequiredFieldValidator>                                                    
                                                </span>
                                                <div style="display: none">
                                                    <asp:TextBox ID="txtDriverDiscount1" runat="server" />

                                                    <script type="text/javascript">
                                                        function CheckDriverDiscount1() {
                                                            //alert('rdoYesOffFDCom');
                                                            var ctrlTxt = document.getElementById('<%=txtDriverDiscount1.ClientID%>');
                                                            var ctrlY = document.getElementById('<%=chkDriverDiscount1.ClientID%>');
                                                            var valCtrl = document.getElementById('<%=rfvDriverDiscount1.ClientID%>');
                                                            if (ctrlY.checked == true) {
                                                                ctrlTxt.value = '1';
                                                                valCtrl.style.visibility = 'hidden';
                                                            }
                                                            else {
                                                                ctrlTxt.value = '';
                                                            }
                                                        }
                                                    </script>

                                                </div>
                                            </div>
                                            <div runat="server" id="divDriverDiscount2">
                                                <asp:CheckBox ToolTip="Click to confirm" onclick="CheckDriverDiscount2()" ID="chkDriverDiscount2"
                                                    Text=" I declared that only the named driver (1) and I am driving the car. No other person can drive. I understand that a 7.5% discount has been incorporated to the premium, in return for restricted driving (Policyholder and 1 named driver only)."
                                                    runat="server" Font-Bold="true" ForeColor="Red" />
                                                <span>
                                                    <asp:RequiredFieldValidator ControlToValidate="txtDriverDiscount2" ID="rfvDriverDiscount2"
                                                        runat="server" CssClass="validationErrorControl" ErrorMessage="Please confirm for discount option."
                                                        Text="<br/><br/>Please confirm for discount option." ValidationGroup="proposal"></asp:RequiredFieldValidator>                                                   
                                                </span>
                                                <div style="display: none">
                                                    <asp:TextBox ID="txtDriverDiscount2" runat="server" />

                                                    <script type="text/javascript">
                                                        function CheckDriverDiscount2() {
                                                            //alert('rdoYesOffFDCom');
                                                            var ctrlTxt = document.getElementById('<%=txtDriverDiscount2.ClientID%>');
                                                            var ctrlY = document.getElementById('<%=chkDriverDiscount2.ClientID%>');
                                                            var valCtrl = document.getElementById('<%=rfvDriverDiscount2.ClientID%>');
                                                            if (ctrlY.checked == true) {
                                                                ctrlTxt.value = '1';
                                                                valCtrl.style.visibility = 'hidden';
                                                            }
                                                            else {
                                                                ctrlTxt.value = '';
                                                            }
                                                        }
                                                    </script>

                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="bottom">
                                    </div>
                                </div>

                                <script type="text/javascript">
                                    IncreaseProgress(20);
                                </script>

                                <div class="seperator">
                                </div>
                                <div class="twoclmn">
                                    <div class="top">
                                    </div>
                                    <div class="body pad_15x">
                                        <h1>
                                            General Information</h1>
                                        <div class="seperator">
                                        </div>
                                        <div id="divOtherInfo">
                                            <div id="divConvictedStatus" class="mar_10by">
                                                <div class="w650 left align_right pad_10xr">
                                                    <span class="red">*</span> 1) Been Convicted of any motoring offence (other than
                                                    parking) in the past 3 years or have prosecutions pending?
                                                </div>
                                                <div class="w220 left pad_20_10x">
                                                    <span id="divYesConvicted">
                                                        <asp:RadioButton onclick="ShowHideDiv('divConvicted',true);ValConvicted(true);CheckConvictedValidationCss();"
                                                            ID="rdoYesConvicted" runat="server" GroupName="convicted" />
                                                        <asp:Label ID="lblYesConvicted" runat="server" Text="Yes"></asp:Label>
                                                    </span>&nbsp;&nbsp;&nbsp;&nbsp; <span id="divNoConvicted">
                                                        <asp:RadioButton onclick="ShowHideDiv('divConvicted',false);ValConvicted(false);CheckConvictedValidationCss();"
                                                            ID="rdoNoConvicted" runat="server" GroupName="convicted" />
                                                        <asp:Label ID="lblNoConvicted" runat="server" Text="No"></asp:Label>
                                                    </span>
                                                    <div style="display: none">
                                                        <asp:TextBox ID="txtConvicted" Text="2" runat="server"></asp:TextBox></div>
                                                    <asp:RequiredFieldValidator ID="rfvConvicted" runat="server" CssClass="validationErrorControl"
                                                        Display="Dynamic" ErrorMessage="" ControlToValidate="txtConvicted" ValidationGroup="proposal"
                                                        Text=""></asp:RequiredFieldValidator>
                                                    <div style="display: none" id="divConvicted">
                                                        <div>
                                                            <div class="h7">
                                                            </div>
                                                            <span class="red">*</span> Please specify<br />
                                                            <div id="divDCPleasespecify">
                                                                <asp:TextBox ID="txtConvictedReason" runat="server" MaxLength="50" size="25"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvConvictedReason" ControlToValidate="txtConvictedReason"
                                                                    ErrorMessage="" ValidationGroup="proposal" CssClass="validationErrorControl"
                                                                    runat="server"></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="h7">
                                            </div>
                                            <div id="divDermeritPointsStatus" class="mar_10by">
                                                <div class="w650 left align_right pad_10xr">
                                                    <span class="red">*</span> 2) Been given Demerit Points? If "yes" Please state name
                                                    of driver, total number of Points accumulated during the last 24 months, the date
                                                    and type of offence?
                                                </div>
                                                <div class="w220 left pad_20_10x">
                                                    <span id="divYesDermeritPoints">
                                                        <asp:RadioButton onclick="ShowHideDiv('divDermeritPoints',true);ValDermeritPoints(true);CheckDermeritPointsValidationCss();"
                                                            ID="rdoYesDermeritPoints" runat="server" GroupName="dermeritpoints" />
                                                        <asp:Label ID="lblYesDermeritPoints" runat="server" Text="Yes"></asp:Label>
                                                    </span>&nbsp;&nbsp;&nbsp;&nbsp; <span id="divNoDermeritPoints">
                                                        <asp:RadioButton onclick="ShowHideDiv('divDermeritPoints',false);ValDermeritPoints(false);CheckDermeritPointsValidationCss();"
                                                            ID="rdoNoDermeritPoints" runat="server" GroupName="dermeritpoints" />
                                                        <asp:Label ID="lblNoDermeritPoints" runat="server" Text="No"></asp:Label>
                                                    </span>
                                                    <div style="display: none">
                                                        <asp:TextBox ID="txtDermeritPoints" runat="server" Text="2"></asp:TextBox>
                                                    </div>
                                                    <asp:RequiredFieldValidator ID="rfvDermeritPoints" runat="server" CssClass="validationErrorControl"
                                                        Display="Dynamic" ErrorMessage="" ControlToValidate="txtDermeritPoints" ValidationGroup="proposal"
                                                        Text=""></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div style="display: none" id="divDermeritPoints" class="mar_10by">
                                                <div class="h7">
                                                </div>
                                                <div class="w650 left align_right pad_10xr">
                                                    <table cellpadding="0" cellspacing="2">
                                                        <tr>
                                                            <td>
                                                                Driver
                                                            </td>
                                                            <td>
                                                                Total Demerit Points
                                                            </td>
                                                            <td>
                                                                Date
                                                            </td>
                                                            <td>
                                                                Type of Offence
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:TextBox ID="txtDrivername1" runat="server" MaxLength="50"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvDrivername1" runat="server" CssClass="validationErrorControl"
                                                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtDrivername1" ValidationGroup="proposal"
                                                                    Text=""></asp:RequiredFieldValidator>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtTotalpoints1" runat="server" MaxLength="2"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvTotalpoints1" runat="server" CssClass="validationErrorControl"
                                                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtTotalpoints1" ValidationGroup="proposal"
                                                                    Text=""></asp:RequiredFieldValidator>
                                                            </td>
                                                            <td>
                                                                <uc2:usrDate ID="ddlDODemerit1" ErrorMessage="" runat="server" ValidationGroup="proposal">
                                                                </uc2:usrDate>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtOffencetype1" runat="server" MaxLength="100"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvOffencetype1" runat="server" CssClass="validationErrorControl"
                                                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtOffencetype1" ValidationGroup="proposal"
                                                                    Text=""></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:TextBox ID="txtDrivername2" runat="server" MaxLength="50" onblur="CheckDriver2Validation();"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtTotalpoints2" runat="server" MaxLength="2"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <uc2:usrDate ID="ddlDODemerit2" ErrorMessage="" runat="server" ValidationGroup="proposal">
                                                                </uc2:usrDate>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtOffencetype2" runat="server" MaxLength="100"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:TextBox ID="txtDrivername3" MaxLength="50" onblur="CheckDriver3Validation();"
                                                                    runat="server"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtTotalpoints3" runat="server" MaxLength="2"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <uc2:usrDate ID="ddlDODemerit3" ErrorMessage="" runat="server" ValidationGroup="proposal">
                                                                </uc2:usrDate>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtOffencetype3" runat="server" MaxLength="100"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:TextBox ID="txtDrivername4" MaxLength="50" onblur="CheckDriver4Validation();"
                                                                    runat="server"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtTotalpoints4" runat="server" MaxLength="2"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <uc2:usrDate ID="ddlDODemerit4" ErrorMessage="" runat="server" ValidationGroup="proposal">
                                                                </uc2:usrDate>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtOffencetype4" runat="server" MaxLength="100"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:TextBox ID="txtDrivername5" MaxLength="50" onblur="CheckDriver5Validation();"
                                                                    runat="server"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtTotalpoints5" runat="server" MaxLength="2"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <uc2:usrDate ID="ddlDODemerit5" ErrorMessage="" runat="server" ValidationGroup="proposal">
                                                                </uc2:usrDate>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtOffencetype5" runat="server" MaxLength="100"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:TextBox ID="txtDrivername6" MaxLength="50" onblur="CheckDriver6Validation();"
                                                                    runat="server"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtTotalpoints6" runat="server" MaxLength="2"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <uc2:usrDate ID="ddlDODemerit6" ErrorMessage="" runat="server" ValidationGroup="proposal">
                                                                </uc2:usrDate>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtOffencetype6" runat="server" MaxLength="100"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                                <div class="w220 left pad_20_10x">
                                                </div>
                                            </div>
                                            <div class="h7">
                                            </div>
                                            <div id="divPhysicalimpairmentStatus" class="mar_10by">
                                                <div class="w650 left align_right pad_10xr">
                                                    <span class="red">*</span> 3) Suffer from defective vision or hearing, heart condition,
                                                    epilepsy, diabetes or any physical or mental disability or infirmity?
                                                </div>
                                                <div class="w220 left pad_20_10x">
                                                    <span id="divYesPhysicalimpairment">
                                                        <asp:RadioButton onclick="ShowHideDiv('divPhysicalimpairment',true);ValPhysicalimpairment(true);CheckPhysicalimpairmentValidationCss();"
                                                            ID="rdoYesPhysicalimpairment" runat="server" GroupName="physicalimpairment" />
                                                        <asp:Label ID="lblYesPhysicalimpairment" runat="server" Text="Yes"></asp:Label>
                                                    </span>&nbsp;&nbsp;&nbsp;&nbsp; <span id="divNoPhysicalimpairment">
                                                        <asp:RadioButton onclick="ShowHideDiv('divPhysicalimpairment',false);ValPhysicalimpairment(false);CheckPhysicalimpairmentValidationCss();"
                                                            ID="rdoNoPhysicalimpairment" runat="server" GroupName="physicalimpairment" />
                                                        <asp:Label ID="lblNoPhysicalimpairment" runat="server" Text="No"></asp:Label>
                                                    </span>
                                                    <div style="display: none">
                                                        <asp:TextBox ID="txtPhysicalimpairment" Text="2" runat="server"></asp:TextBox>
                                                    </div>
                                                    <asp:RequiredFieldValidator ID="rfvPhysicalimpairment" runat="server" CssClass="validationErrorControl"
                                                        Display="Dynamic" ErrorMessage="" ControlToValidate="txtPhysicalimpairment" ValidationGroup="proposal"
                                                        Text=""></asp:RequiredFieldValidator>
                                                    <div style="display: none" id="divPhysicalimpairment">
                                                        <div>
                                                            <div class="h7">
                                                            </div>
                                                            <span class="red">*</span> Please specify<br />
                                                            <div id="divPIPleasespecify">
                                                                <asp:TextBox ID="txtPIReason" runat="server" MaxLength="50" size="25"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvPIReason" ControlToValidate="txtPIReason" ErrorMessage=""
                                                                    ValidationGroup="proposal" CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="h7">
                                            </div>
                                            <div id="divInsuranceterminatedStatus" class="mar_10by">
                                                <div class="w650 left align_right pad_10xr">
                                                    <span class="red">*</span> 4) Do you have any insurance terminated in the last 12
                                                    months due to a breach of any premium payment condition?
                                                </div>
                                                <div class="w220 left pad_20_10x">
                                                    <span id="divYesInsuranceterminated">
                                                        <asp:RadioButton onclick="ShowHideDiv('divInsuranceterminated',true);ValInsuranceterminated(true);CheckInsuranceterminatedValidationCss();"
                                                            ID="rdoYesInsuranceterminated" runat="server" GroupName="insuranceterminated" />
                                                        <asp:Label ID="lblYesInsuranceterminated" runat="server" Text="Yes"></asp:Label>
                                                    </span>&nbsp;&nbsp;&nbsp;&nbsp; <span id="divNoInsuranceterminated">
                                                        <asp:RadioButton onclick="ShowHideDiv('divInsuranceterminated',false);ValInsuranceterminated(false);CheckInsuranceterminatedValidationCss();"
                                                            ID="rdoNoInsuranceterminated" runat="server" GroupName="insuranceterminated" />
                                                        <asp:Label ID="lblNoInsuranceterminated" runat="server" Text="No"></asp:Label>
                                                    </span>
                                                    <div style="display: none">
                                                        <asp:TextBox ID="txtInsuranceterminated" Text="2" runat="server"></asp:TextBox>
                                                    </div>
                                                    <asp:RequiredFieldValidator ID="rfvInsuranceterminated" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ControlToValidate="txtInsuranceterminated" ValidationGroup="proposal"
                                                        Text=""></asp:RequiredFieldValidator>
                                                    <div style="display: none" id="divInsuranceterminated">
                                                        <div>
                                                            <div class="h7">
                                                            </div>
                                                            <span class="red">*</span> Please specify<br />
                                                            <div id="divITPleasespecify">
                                                                <asp:TextBox ID="txtITReason" runat="server" MaxLength="50" size="25"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvITReason" ControlToValidate="txtITReason" ErrorMessage=""
                                                                    ValidationGroup="proposal" CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="h7">
                                            </div>
                                            <div id="divRefusedStatus" class="mar_10by">
                                                <div class="w650 left align_right pad_10xr">
                                                    <span class="red">*</span> 5) Been refused motor insurance at any time or subjected
                                                    to special conditions?
                                                </div>
                                                <div class="w220 left pad_20_10x">
                                                    <span id="divYesRefused">
                                                        <asp:RadioButton onclick="ShowHideDiv('divRefused',true);ValInsuranceRefused(true);CheckInsuranceRefusedValidationCss();ShowHideDiv('divDeclaration',true);"
                                                            ID="rdoYesRefused" runat="server" GroupName="insurancerefused" />
                                                        <asp:Label ID="lblYesRefused" runat="server" Text="Yes"></asp:Label>
                                                    </span>&nbsp;&nbsp;&nbsp;&nbsp; <span id="divNoRefused">
                                                        <asp:RadioButton onclick="ShowHideDiv('divRefused',false);ValInsuranceRefused(false);CheckInsuranceRefusedValidationCss();ShowHideDiv('divDeclaration',true);"
                                                            ID="rdoNoRefused" runat="server" GroupName="insurancerefused" />
                                                        <asp:Label ID="lblNoRefused" runat="server" Text="No"></asp:Label>
                                                    </span>
                                                    <div style="display: none">
                                                        <asp:TextBox ID="txtRefused" Text="2" runat="server"></asp:TextBox>
                                                    </div>
                                                    <asp:RequiredFieldValidator ID="rfvRefused" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ControlToValidate="txtRefused" ValidationGroup="proposal" Text=""></asp:RequiredFieldValidator>
                                                    <div style="display: none" id="divRefused">
                                                        <div>
                                                            <div class="h7">
                                                            </div>
                                                            <span class="red">*</span> Please specify<br />
                                                            <div id="divRefusedSpecify">
                                                                <asp:TextBox ID="txtRefusedReason" runat="server" MaxLength="50" size="25"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvRefusedReason" ControlToValidate="txtRefusedReason"
                                                                    ErrorMessage="" ValidationGroup="proposal" CssClass="validationErrorControl"
                                                                    runat="server"></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="h7">
                                            </div>
                                        </div>
                                        <div class="w200 left pad_30x">
                                        </div>
                                    </div>
                                    <div class="bottom">
                                    </div>
                                </div>
                                <div class="seperator">
                                </div>
                                <div class="hilite">
                                    <div class="top">
                                    </div>
                                    <div class="body_in pad_15x">
                                        <h1>
                                            Proposer's Particulars</h1>
                                        <div class="seperator">
                                        </div>
                                        <div id="divNameConfirm">
                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                <span class="red"></span>
                                            </div>
                                            <div class="left">
                                                <asp:CheckBox onclick="CheckNameAgreed()" ID="chkNameAgreed" runat="server" Text="" />
                                                <span><b>Please confirm this is name as per NRIC.</b></span> <span>
                                                    <asp:RequiredFieldValidator ControlToValidate="txtNameAgreed" ID="rfvNameAgreed"
                                                        runat="server" CssClass="validationErrorControl" ErrorMessage="Please confirm this is name as per NRIC."
                                                        Text="Please confirm this is name as per NRIC." ValidationGroup="proposal"></asp:RequiredFieldValidator>
                                                    <asp:RequiredFieldValidator ControlToValidate="txtNameAgreed" ID="rfvNameAgreedSave"
                                                        runat="server" CssClass="validationErrorControl" ErrorMessage="Please confirm this is name as per NRIC."
                                                        Text="Please confirm this is name as per NRIC." ValidationGroup="tempsaveproposal"></asp:RequiredFieldValidator>
                                                </span>
                                                <div style="display: none">
                                                    <asp:TextBox ID="txtNameAgreed" runat="server" />

                                                    <script type="text/javascript">
                                                        function CheckNameAgreed() {
                                                            //alert('rdoYesOffFDCom');
                                                            var ctrlTxt = document.getElementById('<%=txtNameAgreed.ClientID%>');
                                                            var ctrlY = document.getElementById('<%=chkNameAgreed.ClientID%>');
                                                            var valCtrl = document.getElementById('<%=rfvNameAgreed.ClientID%>');
                                                            if (ctrlY.checked == true) {
                                                                ctrlTxt.value = '1';
                                                                valCtrl.style.visibility = 'hidden';
                                                            }
                                                            else {
                                                                ctrlTxt.value = '';
                                                            }
                                                        }
                                                    </script>

                                                </div>
                                            </div>
                                        </div>
                                        <div class="h10">
                                        </div>
                                        <div class="w43per left">
                                            <div id="divName">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Name:</div>
                                                <div class="left">
                                                    <asp:TextBox ID="txtName" MaxLength="80" runat="server" size="25"></asp:TextBox>&nbsp;
                                                    <asp:RequiredFieldValidator ID="rfvName" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtName"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="revName" runat="server" ControlToValidate="txtName"
                                                        ValidationExpression="^[a-zA-Z''-'\s]{1,80}$" ValidationGroup="proposal" CssClass="validationErrorControl"
                                                        Text="" ErrorMessage=""></asp:RegularExpressionValidator>
                                                    <asp:RequiredFieldValidator ID="rfvNameSave" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="tempsaveproposal" ControlToValidate="txtName"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="revNameSave" runat="server" ControlToValidate="txtName"
                                                        ValidationExpression="^[a-zA-Z''-'\s]{1,80}$" ValidationGroup="tempsaveproposal"
                                                        CssClass="validationErrorControl" Text="" ErrorMessage=""></asp:RegularExpressionValidator>
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="divEmpName">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    Employer Name & Trade:</div>
                                                <div class="left">
                                                    <asp:TextBox ID="txtEmpName" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                    <asp:RegularExpressionValidator ID="revEmpName" runat="server" ValidationGroup="proposal"
                                                        ValidationExpression="^[a-zA-Z''-'\s]{1,40}$" CssClass="validationErrorControl"
                                                        ControlToValidate="txtEmpName" ErrorMessage=""></asp:RegularExpressionValidator>
                                                    <asp:RegularExpressionValidator ID="revEmpNameSave" runat="server" ValidationGroup="tempsaveproposal"
                                                        ValidationExpression="^[a-zA-Z''-'\s]{1,40}$" CssClass="validationErrorControl"
                                                        ControlToValidate="txtEmpName" ErrorMessage=""></asp:RegularExpressionValidator>
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="divNRICNo">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> NRIC Number:</div>
                                                <div class="left">
                                                    <uc3:usrIdNumber ID="ddlIdNumber" runat="server" ValidationGroup="proposal" />
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="divNationality">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Nationality:</div>
                                                <div class="left">
                                                    <uc4:usrNationality ID="ddlNationality" runat="server" ErrorMessage="" ValidationGroup="proposal" />
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="divDrivetowestmalaysia">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    How often do you drive to west Malaysia:</div>
                                                <div class="left">
                                                    <asp:DropDownList ID="ddlDrivetowestmalaysia" runat="server" onchange="ShowHideDiv('divDetailsofVechicle',true);">
                                                        <asp:ListItem Value="-1">Select</asp:ListItem>
                                                        <asp:ListItem Value="Weekly">Weekly</asp:ListItem>
                                                        <asp:ListItem Value="Monthly">Monthly</asp:ListItem>
                                                        <asp:ListItem Value="Less than monthly">Less than monthly</asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                        </div>
                                        <div class="w56per left">
                                          <%--  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                <ContentTemplate>--%>
                                                    <div id="divPostCode">
                                                        <div class="w180 left align_right pad_6t pad_7xr">
                                                            <span class="red">*</span> Postcode:
                                                        </div>
                                                        <!--onchange="PostCodeChange();requestByPostCode();" onblur="javascript:alert('clicked');document.getElementById('<btnPostCode.ClientID>').click();"-->
                                                        <asp:TextBox ID="txtPostCode" size="8" onblur="requestByPostCode();" onkeypress="restrictToNumbers(event)"
                                                            runat="server" MaxLength="6" Width="80px"></asp:TextBox>
                                                     <%--   <asp:ImageButton ID="ibtPostCode" runat="server" CssClass="button" align="absmiddle"
                                                            OnClick="ibtPostCode_Click" Width="108" ValidationGroup="PostCode" AlternateText="Get Address"
                                                            ImageUrl="~/images/forms_proposal/button/getaddress.png" />--%>
                                                        <%--<input type="image" align="absmiddle" width="108" alt="Get Address" src="/images/forms_proposal/button/getaddress.png"
                                                            onclick="this.focus();return false;" class="button" />--%>
                                                       <%-- <asp:UpdateProgress runat="server" ID="uplUpProgress" DisplayAfter="500">
                                                            <ProgressTemplate>
                                                                <span style="position: absolute; text-align: right; width: 390px;">
                                                                    <img src="../../images/loading7.gif" id="ldPostCode" alt="loading" />
                                                                </span>
                                                            </ProgressTemplate>
                                                        </asp:UpdateProgress>--%>
                                                        <asp:RequiredFieldValidator ID="rfvPCode" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage="" ValidationGroup="PostCode" ControlToValidate="txtPostCode"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="revPCode" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage="" ValidationGroup="PostCode" ValidationExpression="[0-9]{6}"
                                                            ControlToValidate="txtPostCode"></asp:RegularExpressionValidator>
                                                        <asp:RequiredFieldValidator ID="rfvPostCode" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtPostCode"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="revPostCode" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage="" ValidationGroup="proposal" ValidationExpression="[0-9]{6}"
                                                            ControlToValidate="txtPostCode"></asp:RegularExpressionValidator>
                                                    </div>
                                                    <div runat="server" visible="false" id="divAddressList">
                                                        <div class="h10">
                                                        </div>
                                                        <div class="w180 left align_right pad_6t pad_7xr">
                                                            Please choose your address
                                                        </div>
                                                        <asp:DropDownList ID="ddlAddressList" runat="server" Width="320px" AutoPostBack="true"
                                                            OnSelectedIndexChanged="ddlAddressList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                              <%--  </ContentTemplate>
                                            </asp:UpdatePanel>--%>
                                            <div class="h10">
                                            </div>
                                            <div id="divUnitNo">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Unit Number:
                                                </div>
                                                <asp:TextBox ID="txtUnit1" MaxLength="10" runat="server" size="8"></asp:TextBox>-
                                                <asp:RequiredFieldValidator ID="rfvUnit1" runat="server" CssClass="validationErrorControl"
                                                    ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtUnit1"></asp:RequiredFieldValidator>
                                                <asp:RequiredFieldValidator ID="rfvUnit1Save" runat="server" CssClass="validationErrorControl"
                                                    ErrorMessage="" ValidationGroup="tempsaveproposal" ControlToValidate="txtUnit1"></asp:RequiredFieldValidator>
                                                <asp:TextBox ID="txtUnit2" MaxLength="10" runat="server" size="8"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="rfvUnit2" runat="server" CssClass="validationErrorControl"
                                                    ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtUnit2"></asp:RequiredFieldValidator>
                                                <asp:RequiredFieldValidator ID="rfvUnit2Save" runat="server" CssClass="validationErrorControl"
                                                    ErrorMessage="" ValidationGroup="tempsaveproposal" ControlToValidate="txtUnit2"></asp:RequiredFieldValidator>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                                <ContentTemplate>
                                                    <div id="divPCAddress">
                                                        <div class="w180 left align_right pad_6t pad_7xr">
                                                            <span class="red">*</span> Address:
                                                        </div>
                                                        <span id="divAddress"></span>
                                                        <asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine" MaxLength="120"
                                                            Width="200px"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="rfvAddress" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtAddress"></asp:RequiredFieldValidator>
                                                        <asp:RequiredFieldValidator ID="rfvAddressSave" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="tempsaveproposal" ControlToValidate="txtAddress"></asp:RequiredFieldValidator>
                                                        </span>
                                                    </div>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                            <div class="h10">
                                            </div>
                                        </div>
                                        <div class="clear">
                                        </div>
                                        <div class="h10">
                                        </div>
                                        <div style="border: 1px solid #ccc; width: 912px; background: #d2d2d2;">
                                            <div class="h10">
                                            </div>
                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                Contact Info:</div>
                                            <div id="divMobileNo" class="w190 note left">
                                                <span class="red">*</span> Mobile Number<br />
                                                <uc1:usrPhoneNo ID="txtMobileNo" IsEnabled="true" IsRequired="true" PhoneNoRequireErrorMessage="Require mobile number."
                                                    PhoneNoErrorMessage="Mobile phone number should 8 digits." PhoneNoValidErrorMessage="Invalid mobile phone number."
                                                    runat="server" ValidationGroup="proposal" />
                                            </div>
                                            <div id="divAResidentPhoneNo" class="w190 note left">
                                                Residential Phone Number<br />
                                                <uc1:usrPhoneNo ID="txtResidentialPhoneNo" runat="server" ValidationGroup="proposal"
                                                    IsRequired="False" />
                                            </div>
                                            <div id="divAOfficeNo" class="w190 note left">
                                                <span class="red">*</span> Office Number<br />
                                                <uc1:usrPhoneNo ID="txtOfficePhoneNo" runat="server" ValidationGroup="proposal" IsRequired="true"
                                                    PhoneNoRequireErrorMessage="Require office number." PhoneNoErrorMessage="Office phone number should be 8 digits."
                                                    PhoneNoValidErrorMessage="Invalid office phone number." />
                                            </div>
                                            <div class="h10">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="bottom">
                                    </div>
                                </div>
                                <div class="seperator">
                                </div>

                                <script type="text/javascript">
                                    IncreaseProgress(35);
                                </script>

                                <asp:Panel ID="pnlDriverDetails" runat="server" Width="100%">
                                    <div class="hilite">
                                        <div class="top">
                                        </div>
                                        <div class="body_in pad_15x">
                                            <div id="divDrivers">
                                                <h1>
                                                    Driver Details</h1>
                                            </div>
                                            <asp:Panel ID="pnlDriver1" runat="server" Width="100%">
                                                <div class="seperator">
                                                </div>
                                                <div>
                                                    <h3>
                                                        <asp:Label ID="lblDriverNo1" runat="server" Text="Driver No: 1"></asp:Label>
                                                        <asp:Label ID="lblDriverId1" Visible="false" runat="server"></asp:Label></h3>
                                                    <div class="h10">
                                                    </div>
                                                    <div class="w43per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Driver DOB/Gender:</div>
                                                            <div class="left pad_6t">
                                                                <asp:Label ID="lblDriverDOB1" runat="server"></asp:Label>&nbsp;&nbsp;
                                                                <asp:Label ID="lblDriverGender1" runat="server"></asp:Label>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Salutation:</div>
                                                            <div class="left">
                                                                <uc8:usrSalutation ID="ddlDriverSalutation1" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                            <div style="display: none;">
                                                                <uc9:usrGender ID="ddlDriverGender1" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div style="display: none">
                                                            <asp:TextBox ID="txtDriverSalGenderValid1" Text="Valid" runat="server"></asp:TextBox>
                                                            <asp:CustomValidator CssClass="validationErrorControl" ControlToValidate="txtDriverSalGenderValid1"
                                                                ValidationGroup="proposal" ID="csvDriverSalGender1" ClientValidationFunction="CheckDriverSalGenderValid1"
                                                                OnServerValidate="CheckDriverSalGenderValid1" runat="server" ErrorMessage="Salutation and gender do not match."
                                                                Text=""></asp:CustomValidator>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Surname:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverSurName1" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverSurName1"
                                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverSurName1"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverSurName1Save"
                                                                    ValidationGroup="tempsaveproposal" runat="server" ControlToValidate="txtDriverSurName1"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="w56per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Given Name:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverGivenName1" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Type:</div>
                                                            <div class="left">
                                                                <uc7:usrIdType ID="ddlDriverIdType1" runat="server" ValidationGroup="proposal"></uc7:usrIdType>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Number:</div>
                                                            <div class="left">
                                                                <uc3:usrIdNumber ID="ddlDriverIdNumber1" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                            <asp:Panel ID="pnlDriver2" runat="server" Width="100%">
                                                <div class="seperator">
                                                </div>
                                                <div>
                                                    <h3>
                                                        <asp:Label ID="lblDriverNo2" runat="server" Text="Driver No: 2"></asp:Label>
                                                        <asp:Label ID="lblDriverId2" Visible="false" runat="server"></asp:Label></h3>
                                                    <div class="h10">
                                                    </div>
                                                    <div class="w43per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Driver DOB/Gender:</div>
                                                            <div class="left pad_6t">
                                                                <asp:Label ID="lblDriverDOB2" runat="server"></asp:Label>&nbsp;&nbsp;
                                                                <asp:Label ID="lblDriverGender2" runat="server"></asp:Label>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Salutation:</div>
                                                            <div class="left">
                                                                <uc8:usrSalutation ID="ddlDriverSalutation2" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                            <div style="display: none;">
                                                                <uc9:usrGender ID="ddlDriverGender2" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div style="display: none">
                                                            <asp:TextBox ID="txtDriverSalGenderValid2" Text="Valid" runat="server"></asp:TextBox>
                                                            <asp:CustomValidator CssClass="validationErrorControl" ControlToValidate="txtDriverSalGenderValid2"
                                                                ValidationGroup="proposal" ID="csvDriverSalGender2" ClientValidationFunction="CheckDriverSalGenderValid2"
                                                                OnServerValidate="CheckDriverSalGenderValid2" runat="server" ErrorMessage="Salutation and gender do not match."
                                                                Text=""></asp:CustomValidator>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Surname:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverSurName2" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverSurName2"
                                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverSurName2"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="w56per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Given Name:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverGivenName2" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Type:</div>
                                                            <div class="left">
                                                                <uc7:usrIdType ID="ddlDriverIdType2" runat="server" ValidationGroup="proposal"></uc7:usrIdType>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Number:</div>
                                                            <div class="left">
                                                                <uc3:usrIdNumber ID="ddlDriverIdNumber2" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                            <asp:Panel ID="pnlDriver3" runat="server" Width="100%">
                                                <div class="seperator">
                                                </div>
                                                <div>
                                                    <h3>
                                                        <asp:Label ID="lblDriverNo3" runat="server" Text="Driver No: 3"></asp:Label>
                                                        <asp:Label ID="lblDriverId3" Visible="false" runat="server"></asp:Label></h3>
                                                    <div class="h10">
                                                    </div>
                                                    <div class="w43per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Driver DOB/Gender:</div>
                                                            <div class="left pad_6t">
                                                                <asp:Label ID="lblDriverDOB3" runat="server"></asp:Label>&nbsp;&nbsp;
                                                                <asp:Label ID="lblDriverGender3" runat="server"></asp:Label>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Salutation:</div>
                                                            <div class="left">
                                                                <uc8:usrSalutation ID="ddlDriverSalutation3" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                            <div style="display: none;">
                                                                <uc9:usrGender ID="ddlDriverGender3" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div style="display: none">
                                                            <asp:TextBox ID="txtDriverSalGenderValid3" Text="Valid" runat="server"></asp:TextBox>
                                                            <asp:CustomValidator CssClass="validationErrorControl" ControlToValidate="txtDriverSalGenderValid3"
                                                                ValidationGroup="proposal" ID="csvDriverSalGender3" ClientValidationFunction="CheckDriverSalGenderValid3"
                                                                OnServerValidate="CheckDriverSalGenderValid3" runat="server" ErrorMessage="Salutation and gender do not match."
                                                                Text=""></asp:CustomValidator>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Surname:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverSurName3" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverSurName3"
                                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverSurName3"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="w56per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Given Name:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverGivenName3" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Type:</div>
                                                            <div class="left">
                                                                <uc7:usrIdType ID="ddlDriverIdType3" runat="server" ValidationGroup="proposal"></uc7:usrIdType>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Number:</div>
                                                            <div class="left">
                                                                <uc3:usrIdNumber ID="ddlDriverIdNumber3" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                            <asp:Panel ID="pnlDriver4" runat="server" Width="100%">
                                                <div class="seperator">
                                                </div>
                                                <div>
                                                    <h3>
                                                        <asp:Label ID="lblDriverNo4" runat="server" Text="Driver No: 4"></asp:Label>
                                                        <asp:Label ID="lblDriverId4" Visible="false" runat="server"></asp:Label></h3>
                                                    <div class="h10">
                                                    </div>
                                                    <div class="w43per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Driver DOB/Gender:</div>
                                                            <div class="left pad_6t">
                                                                <asp:Label ID="lblDriverDOB4" runat="server"></asp:Label>&nbsp;&nbsp;
                                                                <asp:Label ID="lblDriverGender4" runat="server"></asp:Label>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Salutation:</div>
                                                            <div class="left">
                                                                <uc8:usrSalutation ID="ddlDriverSalutation4" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                            <div style="display: none;">
                                                                <uc9:usrGender ID="ddlDriverGender4" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div style="display: none">
                                                            <asp:TextBox ID="txtDriverSalGenderValid4" Text="Valid" runat="server"></asp:TextBox>
                                                            <asp:CustomValidator CssClass="validationErrorControl" ControlToValidate="txtDriverSalGenderValid4"
                                                                ValidationGroup="proposal" ID="csvDriverSalGender4" ClientValidationFunction="CheckDriverSalGenderValid4"
                                                                OnServerValidate="CheckDriverSalGenderValid4" runat="server" ErrorMessage="Salutation and gender do not match."
                                                                Text=""></asp:CustomValidator>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Surname:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverSurName4" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverSurName4"
                                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverSurName4"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="w56per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Given Name:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverGivenName4" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Type:</div>
                                                            <div class="left">
                                                                <uc7:usrIdType ID="ddlDriverIdType4" runat="server" ValidationGroup="proposal"></uc7:usrIdType>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Number:</div>
                                                            <div class="left">
                                                                <uc3:usrIdNumber ID="ddlDriverIdNumber4" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                            <asp:Panel ID="pnlDriver5" runat="server" Width="100%">
                                                <div class="seperator">
                                                </div>
                                                <div>
                                                    <h3>
                                                        <asp:Label ID="lblDriverNo5" runat="server" Text="Driver No: 5"></asp:Label>
                                                        <asp:Label ID="lblDriverId5" Visible="false" runat="server"></asp:Label></h3>
                                                    <div class="h10">
                                                    </div>
                                                    <div class="w43per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Driver DOB/Gender:</div>
                                                            <div class="left pad_6t">
                                                                <asp:Label ID="lblDriverDOB5" runat="server"></asp:Label>
                                                                <asp:Label ID="lblDriverGender5" runat="server"></asp:Label>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Salutation:</div>
                                                            <div class="left">
                                                                <uc8:usrSalutation ID="ddlDriverSalutation5" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                            <div style="display: none;">
                                                                <uc9:usrGender ID="ddlDriverGender5" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div style="display: none">
                                                            <asp:TextBox ID="txtDriverSalGenderValid5" Text="Valid" runat="server"></asp:TextBox>
                                                            <asp:CustomValidator CssClass="validationErrorControl" ControlToValidate="txtDriverSalGenderValid5"
                                                                ValidationGroup="proposal" ID="csvDriverSalGender5" ClientValidationFunction="CheckDriverSalGenderValid5"
                                                                OnServerValidate="CheckDriverSalGenderValid5" runat="server" ErrorMessage="Salutation and gender do not match."
                                                                Text=""></asp:CustomValidator>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Surname:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverSurName5" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverSurName5"
                                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverSurName5"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="w56per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Given Name:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverGivenName5" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Type:</div>
                                                            <div class="left">
                                                                <uc7:usrIdType ID="ddlDriverIdType5" runat="server" ValidationGroup="proposal"></uc7:usrIdType>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Number:</div>
                                                            <div class="left">
                                                                <uc3:usrIdNumber ID="ddlDriverIdNumber5" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                        <div class="bottom">
                                        </div>
                                    </div>
                                    <div class="seperator">
                                    </div>
                                </asp:Panel>
                                <div class="hilite" id="divDetailsofVechicleHeader">
                                    <div class="top">
                                    </div>
                                    <div class="body_in pad_15x" style="display: " id="divDetailsofVechicle">
                                        <div>
                                            <h1>
                                                Details of Vehicle</h1>
                                        </div>
                                        <div class="seperator">
                                        </div>
                                        <div class="w43per left">
                                            <div id="divNCDNIL">
                                                <div class="w150 left align_right pad_6t pad_7xr">
                                                    If NCD is "NIL", please provide the reason:</div>
                                                <div class="left pad_6t">
                                                    <asp:DropDownList classs="input" ID="ddlNCDReason" runat="server" onchange="javascript:if (this.value == 'Others') { ShowHideDiv('divNCDReason',true); }ShowHideNCDReasonStatus();">
                                                        <asp:ListItem Text="Select" Value="-1"></asp:ListItem>
                                                        <asp:ListItem Text="Not Applicable" Value="Not Applicable"></asp:ListItem>
                                                        <asp:ListItem Text="First time buying a vehicle" Value="First time buying a vehicle"></asp:ListItem>
                                                        <asp:ListItem Text="2nd or 3rd vehicle" Value="2nd or 3rd vehicle"></asp:ListItem>
                                                        <asp:ListItem Text="Have been driving others' car" Value="Have been driving others' car"></asp:ListItem>
                                                        <asp:ListItem Text="Others" Value="Others"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div style="display: " id="divNCDReason">
                                                <div class="h10">
                                                </div>
                                                <div class="w180 left align_right pad_6t pad_7xr" id="divNCDPleasespecify">
                                                    <span class="red">*</span> Please specify:</div>
                                                <div class="left pad_6t">
                                                    <asp:TextBox ID="txtNCDReason" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="rfvNCDReason" ControlToValidate="txtNCDReason" ErrorMessage=""
                                                        ValidationGroup="proposal" CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                                    <asp:RequiredFieldValidator ID="rfvNCDReasonSave" ControlToValidate="txtNCDReason"
                                                        ErrorMessage="" ValidationGroup="tempsaveproposal" CssClass="validationErrorControl"
                                                        runat="server"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="divVehicleNo">
                                                <div class="w150 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Vehicle No:</div>
                                                <div class="left pad_6t">
                                                    <asp:TextBox ID="txtVehicleNo" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="rfvVehicleNo" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtVehicleNo" Display="Dynamic"></asp:RequiredFieldValidator>
                                                    <asp:RequiredFieldValidator ID="rfvVehicleNoSave" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="tempsaveproposal" ControlToValidate="txtVehicleNo"
                                                        Display="Dynamic"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="clear">
                                            </div>
                                            <div id="div13" style="text-align: center;">
                                                <asp:CustomValidator CssClass="validationErrorControl" ControlToValidate="txtVehicleNoValid"
                                                    ValidationGroup="proposal" ID="csvVehicleNoValid" runat="server" ErrorMessage="we do not accept commercial vehicle"
                                                    Text="" OnServerValidate="csvVehicleNoValid_ServerValidate"></asp:CustomValidator>
                                                <div style="display: none;">
                                                    <asp:TextBox ID="txtVehicleNoValid" Text="Valid" runat="server"></asp:TextBox></div>
                                            </div>
                                            <%--<div class="row" id="divOdometerReading">
                                            <label for="Odometer Reading" class="mand_red">
                                                Odometer Reading</label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtOdometerReading" runat="server" MaxLength="8"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="rfvOdometerReading" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtOdometerReading"
                                                        Display="Dynamic"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="revOdometerReading" runat="server" ControlToValidate="txtOdometerReading"
                                                        CssClass="validationErrorControl"  ErrorMessage="" ValidationGroup="proposal" 
                                                        ValidationExpression="^[0-9]+(\[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                                                </span>
                                            </div>
                                            <div class="clear"></div>
                                            </div>--%>
                                            <div class="h10">
                                            </div>
                                            <div id="divDORegisteration">
                                                <div class="w150 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Date of Registration:</div>
                                                <div class="left pad_6t">
                                                    <uc2:usrDate ID="ddlDORegisteration" ErrorMessage="" runat="server" ValidationGroup="proposal" />
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="divEngineNo">
                                                <div class="w150 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Engine No:</div>
                                                <div class="left pad_6t">
                                                    <asp:TextBox ID="txtEngineNo" MaxLength="50" runat="server" size="25"></asp:TextBox>&nbsp;
                                                    <asp:RequiredFieldValidator ID="rfvEngineNo" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtEngineNo"></asp:RequiredFieldValidator>
                                                    <asp:RequiredFieldValidator ID="rfvEngineNoSave" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="tempsaveproposal" ControlToValidate="txtEngineNo"></asp:RequiredFieldValidator>
                                                </div>
                                                <asp:HyperLink ID="hyLinkLTA" runat="server" NavigateUrl="https://vrl.lta.gov.sg/lta/vrl/action/pubfunc?ID=EnquireTransferFee"
                                                    Target="_blank">
                                                <img src="/images/icon/info.png" alt="Click to Check your Vehicle Engine number / Chassis number." title="Click to Check your Vehicle Engine number / Chassis number." style="padding-top:11px; padding-left:3px;"/></asp:HyperLink>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="divChassisNo">
                                                <div class="w150 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Chassis No:</div>
                                                <div class="left pad_6t">
                                                    <asp:TextBox ID="txtChassisNo" MaxLength="50" runat="server" size="25"></asp:TextBox>&nbsp;
                                                    <asp:RequiredFieldValidator ID="rfvChassisNo" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtChassisNo"></asp:RequiredFieldValidator>
                                                    <asp:RequiredFieldValidator ID="rfvChassisNoSave" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="tempsaveproposal" ControlToValidate="txtChassisNo"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <%--<div class="row">
                                                <label for="Estimated Market Value" class="mand_red">
                                                    Estimated Market Value</label>
                                                <div class="field">
                                                    <div id="divEstimatedMarketValue">
                                                        <asp:TextBox ID="txtEstimateMarketValue" runat="server"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="rfvEstimateMarketValue" ControlToValidate="txtEstimateMarketValue"
                                                            ErrorMessage="" ValidationGroup="proposal"
                                                            CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="revEstimateMarketValue" runat="server" ControlToValidate="txtEstimateMarketValue"
                                                            CssClass="validationErrorControl"  ErrorMessage="" ValidationGroup="proposal" 
                                                            ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                                                    </div>
                                                </div>
                                                <div class="clear"></div>
                                            </div>--%>
                                        </div>
                                        <div class="w56per left">
                                            <div id="divHirePurchasestatus">
                                                <div class="w220 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Any hire purchase to your motor vehicle?:</div>
                                                <div class="left pad_8yr">
                                                    <span id="divYesHirePurchase">
                                                        <asp:RadioButton onclick="ShowHideDiv('divHirePurchase',true);ValHirePurchase(true);CheckHirePurchaseValidationCss();"
                                                            ID="rdoYesHirePurchase" runat="server" GroupName="hirepurchase" />
                                                        <asp:Label ID="lblYesHirePurchase" class="pad_15xr" runat="server" Text="Yes"></asp:Label>
                                                    </span><span id="divNoHirePurchase">
                                                        <asp:RadioButton onclick="ShowHideDiv('divHirePurchase',false);ValHirePurchase(false);CheckHirePurchaseValidationCss();"
                                                            ID="rdoNoHirePurchase" runat="server" GroupName="hirepurchase" />
                                                        <asp:Label ID="lblNoHirePurchase" runat="server" Text="No"></asp:Label>
                                                    </span><span style="display: none">
                                                        <asp:TextBox ID="txtHirePurchase" runat="server"></asp:TextBox></span>
                                                    <asp:RequiredFieldValidator ID="rfvHirePurchase" runat="server" CssClass="validationErrorControl"
                                                        Display="Dynamic" ErrorMessage="" ControlToValidate="txtHirePurchase" ValidationGroup="proposal"
                                                        Text=""></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div id="divHirePurchase" style="display: ">
                                                <div class="h10">
                                                </div>
                                                <div id="divHirePurchaseCompany">
                                                    <div class="w220 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span> Company Name:</div>
                                                    <div class="left">
                                                        <asp:DropDownList ID="ddlHirePurchaseCompany" Width="270px" runat="server">
                                                        </asp:DropDownList>
                                                        <asp:RequiredFieldValidator ID="rfvHirePurchaseCompany" ControlToValidate="ddlHirePurchaseCompany"
                                                            CssClass="validationErrorControl" runat="server" InitialValue="-1" ValidationGroup="proposal"
                                                            Text="" ErrorMessage=""></asp:RequiredFieldValidator>
                                                        <%--<asp:TextBox ID="txtHirePurchaseCompany" runat="server" class="text"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="rfvHirePurchaseCompany" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtHirePurchaseCompany"
                                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="revHirePurchaseCompany" runat="server" ValidationGroup="proposal" 
                                                            ValidationExpression="^[a-zA-Z''-'\s]{1,50}$" CssClass="validationErrorControl" 
                                                            ControlToValidate="txtHirePurchaseCompany" ErrorMessage=""></asp:RegularExpressionValidator>--%>
                                                    </div>
                                                </div>
                                                <%--<asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                                    <ContentTemplate>
                                                        <div class="row" id="divHPostCode">
                                                            <label for="Postcode" class="mand_red">
                                                                Postcode</label>
                                                            <div class="field">
                                                                <span class="indicator">
                                                                    <asp:TextBox ID="txtHPostCode" runat="server" class="text" MaxLength="6"></asp:TextBox>
                                                                    <asp:Button ID="btnHPostCode" ValidationGroup="HPostCode"
                                                                        runat="server" Text="Get Address" onclick="btnHPostCode_Click" />
                                                                    <asp:RequiredFieldValidator ID="rfvHPCode" runat="server" CssClass="validationErrorControl"
                                                                        Display="Dynamic" ErrorMessage="" ValidationGroup="HPostCode"
                                                                        ControlToValidate="txtPostCode"></asp:RequiredFieldValidator>
                                                                    <asp:RegularExpressionValidator ID="revHPCode" runat="server" CssClass="validationErrorControl"
                                                                        Display="Dynamic" ErrorMessage="" ValidationGroup="HPostCode"
                                                                        ValidationExpression="[0-9]{6}" ControlToValidate="txtHPostCode"></asp:RegularExpressionValidator>
                                                                </span><span class="indicator">
                                                                    <asp:RequiredFieldValidator ID="rfvHPostCode" runat="server" CssClass="validationErrorControl"
                                                                        Display="Dynamic" ErrorMessage="" ValidationGroup="proposal"
                                                                        ControlToValidate="txtHPostCode"></asp:RequiredFieldValidator>
                                                                    <asp:RegularExpressionValidator ID="revHPostCode" runat="server" CssClass="validationErrorControl"
                                                                        Display="Dynamic" ErrorMessage="" ValidationGroup="proposal"
                                                                        ValidationExpression="[0-9]{6}" ControlToValidate="txtHPostCode"></asp:RegularExpressionValidator>
                                                                </span>
                                                            </div>
                                                            <div class="clear"></div>
                                                        </div>
                                                        <div class="row" id="divHUnitNo">
                                                            <label for="H Unit Number" class="mand_red">
                                                                Unit Number</label>
                                                            <div class="field">
                                                                <span class="indicator">
                                                                    <asp:TextBox ID="txtHUnit1" runat="server" class="textsml"></asp:TextBox>-</span>
                                                                <span class="indicator">
                                                                    <asp:RequiredFieldValidator ID="rfvHUnit1" runat="server" CssClass="validationErrorControl"
                                                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtHUnit1"></asp:RequiredFieldValidator></span>
                                                                <span class="indicator">
                                                                    <asp:TextBox ID="txtHUnit2" runat="server" class="textsml"></asp:TextBox></span>
                                                                <span class="indicator">
                                                                    <asp:RequiredFieldValidator ID="rfvHUnit2" runat="server" CssClass="validationErrorControl"
                                                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtHUnit2"></asp:RequiredFieldValidator>
                                                                </span>
                                                            </div>
                                                            <div class="clear"></div>
                                                        </div>
                                                        <div class="row" id="divHAddress">
                                                            <label for="H Address" class="mand_red">
                                                                Address</label>
                                                            <div class="field">
                                                                <span class="indicator">
                                                                    <asp:TextBox ID="txtHAddress" runat="server" Columns="50" MaxLength="120" Rows="2"
                                                                        TextMode="MultiLine" class="text"></asp:TextBox>
                                                                    <asp:RequiredFieldValidator ID="rfvHAddress" runat="server" CssClass="validationErrorControl"
                                                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtHAddress"></asp:RequiredFieldValidator>
                                                                    <asp:RegularExpressionValidator ID="revHAddress" runat="server" ValidationGroup="proposal"
                                                                        ErrorMessage="" CssClass="validationErrorControl"
                                                                        Text="" ControlToValidate="txtHAddress" ValidationExpression="^[0-9a-zA-Z''-'\s]{5,120}$"></asp:RegularExpressionValidator>
                                                                </span>
                                                            </div>
                                                            <div class="clear"></div>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>--%>
                                            </div>
                                            <%--<div class="h10"></div>
                                            <div id="divOtherInsurencestatus">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                   <span class="red">*</span>  Do you have any motor vehicle Insurance?:</div>
                                                <div class="left pad_8yr">
                                                    <span id="divYesOtherInsurence">
                                                        <asp:RadioButton onclick="ShowHideDiv('divOtherInsurence',true);ShowHideDiv('divDeclaration',true);ValOtherInsurence(true);CheckOtherInsurenceValidationCss();"
                                                            ID="rdoYesOtherInsurence" runat="server" GroupName="otherinsurance" />
                                                        <asp:Label ID="lblYesOtherInsurence" class="pad_15xr" runat="server" Text="Yes"></asp:Label>
                                                    </span>
                                                    <span id="divNoOtherInsurence">
                                                        <asp:RadioButton onclick="ShowHideDiv('divOtherInsurence',false);ShowHideDiv('divDeclaration',true);ValOtherInsurence(false);CheckOtherInsurenceValidationCss();"
                                                            ID="rdoNoOtherInsurence" runat="server" GroupName="otherinsurance" />
                                                        <asp:Label ID="lblNoOtherInsurence" runat="server" Text="No"></asp:Label>
                                                    </span>
                                                    <div style="display:none">
                                                        <asp:TextBox ID="txtOI" runat="server"></asp:TextBox></div>
                                                    <asp:RequiredFieldValidator ID="rfvOI" runat="server" CssClass="validationErrorControl"
                                                        Display="Dynamic" ErrorMessage="" ControlToValidate="txtOI" ValidationGroup="proposal"
                                                        Text=""></asp:RequiredFieldValidator>
                                                </div>
                                            </div>--%>
                                            <div class="h10">
                                            </div>
                                            <div id="divInsuranceCompany">
                                                <div class="w220 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Current Insurance Co.:</div>
                                                <div class="left">
                                                    <asp:DropDownList ID="ddlCurInsuranceCompany" Width="270px" runat="server" onchange="javascript:if (this.value != '177') { ShowHideDiv('divOtherInsurence',true); }ShowInsurerStatus();">
                                                    </asp:DropDownList>
                                                    <asp:RequiredFieldValidator ID="rfvCurInsuranceCompany" ControlToValidate="ddlCurInsuranceCompany"
                                                        CssClass="validationErrorControl" runat="server" InitialValue="-1" ValidationGroup="proposal"
                                                        Text="" ErrorMessage=""></asp:RequiredFieldValidator>
                                                    <asp:RequiredFieldValidator ID="rfvCurInsuranceCompanySave" ControlToValidate="ddlCurInsuranceCompany"
                                                        CssClass="validationErrorControl" runat="server" InitialValue="-1" ValidationGroup="tempsaveproposal"
                                                        Text="" ErrorMessage=""></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div id="divOtherInsurence" style="display: ">
                                                <%--<div class="h10"></div>
                                                <div id="divInsuranceCompany">
                                                    <div class="w180 left align_right pad_6t pad_7xr">
                                                       <span class="red">*</span> Current Insurance Co.:</div>
                                                    <div class="left">
                                                        <asp:DropDownList ID="ddlCurInsuranceCompany" Width="300px" runat="server" >
                                                        </asp:DropDownList>
                                                        <asp:RequiredFieldValidator ID="rfvCurInsuranceCompany" ControlToValidate="ddlCurInsuranceCompany"
                                                            CssClass="validationErrorControl" runat="server" InitialValue="-1" ValidationGroup="proposal"
                                                            Text="" ErrorMessage=""></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>--%>
                                                <div class="h10">
                                                </div>
                                                <div id="divInsVehicleNo">
                                                    <div class="w220 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span> Vehicle No:</div>
                                                    <div class="left">
                                                        <asp:TextBox ID="txtInsVehicleNo" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="rfvInsVehicleNo" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtInsVehicleNo"
                                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                                        <asp:RequiredFieldValidator ID="rfvInsVehicleNoSave" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="tempsaveproposal" ControlToValidate="txtInsVehicleNo"
                                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                                <div class="clear">
                                                </div>
                                                <div id="div13" style="text-align: center;">
                                                    <asp:CustomValidator CssClass="validationErrorControl" ControlToValidate="txtInsVehicleNoValid"
                                                        ValidationGroup="proposal" ID="csvInsVehicleNoValid" runat="server" ErrorMessage="we do not accept commercial vehicle"
                                                        Text="" OnServerValidate="csvInsVehicleNoValid_ServerValidate"></asp:CustomValidator>
                                                    <div style="display: none;">
                                                        <asp:TextBox ID="txtInsVehicleNoValid" Text="Valid" runat="server"></asp:TextBox></div>
                                                </div>
                                                <%--<div class="row" id="divInsPolicyNo">
                                                    <label for="Ins Policy No" class="mand_red">
                                                        Policy No</label>
                                                    <div class="field">
                                                        <span class="indicator">
                                                            <asp:TextBox ID="txtInsPolicyNo" runat="server" class="text"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="rfvInsPolicyNo" runat="server" CssClass="validationErrorControl"
                                                                ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtInsPolicyNo"
                                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                                        </span>
                                                    </div>
                                                    <div class="clear"></div>
                                                </div>--%>
                                                <div class="h10">
                                                </div>
                                                <div id="divInsCanceldate">
                                                    <div class="w220 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span> Expiry / Cancellation Date:</div>
                                                    <div class="left">
                                                        <uc2:usrDate ID="ddlDOCancellation" ErrorMessage="" runat="server" ValidationGroup="proposal" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <%--<div class="row">
                                                    <label for="NCD (No Claims Discount) on next renewal" class="mand_red">
                                                        NCD (No Claims Discount) entitlement</label>
                                                    <div class="field">
                                                        <span class="indicator">
                                                            <asp:DropDownList ID="ddlNCD" runat="server">
                                                            </asp:DropDownList>
                                                        </span><span class="indicator">%</span> <span class="indicator">
                                                            <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvNCD"
                                                                runat="server" InitialValue="-2" ControlToValidate="ddlNCD" ErrorMessage="" ValidationGroup="proposal"></asp:RequiredFieldValidator>
                                                        </span>
                                                    </div>
                                                    <div class="clear">
                                                    </div>
                                                </div>
                                            </div>--%>
                                            <div id="divVechicleModificationStatus">
                                                <div class="w220 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Has the vehicle been modified/converted in anyway from
                                                    the manufacturer's specifications?:</div>
                                                <div class="left pad_8yr">
                                                    <span id="divYesVechicleModification">
                                                        <asp:RadioButton onclick="ShowHideDiv('divVechicleModification',true);ValVechicleModification(true);CheckVechicleModificationValidationCss();"
                                                            ID="rdoYesVechicleModification" runat="server" GroupName="vechiclemodification" />
                                                        <asp:Label ID="lblYesVechicleModification" class="pad_15xr" runat="server" Text="Yes"></asp:Label>
                                                    </span><span id="divNoVechicleModification">
                                                        <asp:RadioButton onclick="ShowHideDiv('divVechicleModification',false);ValVechicleModification(false);CheckVechicleModificationValidationCss();"
                                                            ID="rdoNoVechicleModification" runat="server" GroupName="vechiclemodification" />
                                                        <asp:Label ID="lblNoVechicleModification" runat="server" Text="No"></asp:Label>
                                                    </span>
                                                    <div style="display: none">
                                                        <asp:TextBox ID="txtVechicleModification" runat="server"></asp:TextBox></div>
                                                    <asp:RequiredFieldValidator ID="rfvVechicleModification" runat="server" CssClass="validationErrorControl"
                                                        Display="Dynamic" ErrorMessage="" ControlToValidate="txtVechicleModification"
                                                        ValidationGroup="proposal" Text=""></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div style="display: " id="divVechicleModification">
                                                <div class="h10">
                                                </div>
                                                <div class="w220 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Please specify:</div>
                                                <div class="left">
                                                    <div id="divVMPleasespecify">
                                                        <asp:TextBox ID="txtVMReason" runat="server" MaxLength="100" runat="server" Width="250px"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="rfvVMReason" ControlToValidate="txtVMReason" ErrorMessage=""
                                                            ValidationGroup="proposal" CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                                        <br />
                                                        <span style="font-size: smaller"><b><i>Additional premium or/and excess may apply.</i></b></span>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="divAccessoriesStatus">
                                                <div class="w220 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Are there any additional accessories installed on the
                                                    vehicle?:</div>
                                                <div class="left pad_8yr">
                                                    <span id="divYesAccessories">
                                                        <asp:RadioButton onclick="ShowHideDiv('divAccessories',true);ShowHideDiv('divOtherInfo',true);ValAccessories(true);CheckAccessoriesValidationCss();"
                                                            ID="rdoYesAccessories" runat="server" GroupName="accessories" />
                                                        <asp:Label ID="lblYesAccessories" class="pad_15xr" runat="server" Text="Yes"></asp:Label>
                                                    </span><span id="divNoAccessories">
                                                        <asp:RadioButton onclick="ShowHideDiv('divAccessories',false);ShowHideDiv('divOtherInfo',true);ValAccessories(false);CheckAccessoriesValidationCss();"
                                                            ID="rdoNoAccessories" runat="server" GroupName="accessories" />
                                                        <asp:Label ID="lblNoAccessories" runat="server" Text="No"></asp:Label>
                                                    </span>
                                                    <div style="display: none">
                                                        <asp:TextBox ID="txtAccess" runat="server"></asp:TextBox></div>
                                                    <asp:RequiredFieldValidator ID="rfvAccess" runat="server" Display="Dynamic" ErrorMessage=""
                                                        ControlToValidate="txtAccess" ValidationGroup="proposal" Text=""></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div style="display: " id="divAccessories">
                                                <div class="h10">
                                                </div>
                                                <div class="w220 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Accessories:</div>
                                                <div class="left">
                                                    <div id="divSubAccessories">
                                                        <asp:TextBox ID="txtAccessories" runat="server" MaxLength="250" Columns="50" Rows="3"
                                                            Width="250px" TextMode="MultiLine"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="rfvAccessories" ControlToValidate="txtAccessories"
                                                            ErrorMessage="" ValidationGroup="proposal" CssClass="validationErrorControl"
                                                            runat="server"></asp:RequiredFieldValidator>
                                                        <br />
                                                        <span style="font-size: smaller"><b><i>Additional premium or/and excess may apply.</i></b></span>
                                                    </div>
                                                </div>
                                            </div>
                                            <%--<div class="row" id="divInsurancefrom">
                                                <label for="Peroid From Date" class="mand_red">Insurance From</label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <uc2:usrDate ID="ddlInsurancefrom" ErrorMessage="" runat="server" ValidationGroup="proposal" />
                                                    </span>
                                                </div>
                                                <div class="clear"></div>
                                            </div>
                                            <div class="row" id="divInsuranceto">
                                                <label for="Peroid To Date" class="mand_red">Insurance To</label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <uc2:usrDate ID="ddlInsuranceto" ErrorMessage="" runat="server" ValidationGroup="proposal" />
                                                    </span>
                                                </div>
                                                <div class="clear"></div>
                                            </div>--%>
                                        </div>
                                    </div>
                                    <div class="bottom">
                                    </div>
                                </div>

                                <script type="text/javascript">
                                    IncreaseProgress(50);
                                </script>

                                <div class="seperator">
                                </div>
                                <div class="hilite" style="display: " id="divNCDProtection">
                                    <div class="top">
                                    </div>
                                    <div class="body_in pad_15x" id="divNCDProtectionHeader">
                                        <h1>
                                            NCD Protection</h1>
                                        <div class="h7">
                                        </div>
                                        <div id="div2">
                                            <div class="w220 left align_right pad_6t pad_7xr">
                                                <span class="red">*</span> NCD Protection:</div>
                                            <div class="left pad_8yr">
                                                <span id="divNoNCD">
                                                    <input id="inputNCD" value="" runat="server" type="hidden" />
                                                    <input id="inputClaim" value="" runat="server" type="hidden" />
                                                    <asp:RadioButton runat="server" ID="rdoNo" GroupName="ncdprotect" onclick="SetPremiumValue();ShowHideDiv('divDeclaration',true);"
                                                        Checked="true" />
                                                    <asp:Label ID="Label1" class="pad_15xr" runat="server" Text="NO"></asp:Label>
                                                </span><span id="divYesNCD">
                                                    <asp:RadioButton runat="server" ID="rdoYes" GroupName="ncdprotect" onclick="SetPremiumValue();ShowHideDiv('divDeclaration',true);" />
                                                    <asp:Label ID="Label2" runat="server" Text="YES"></asp:Label>
                                                </span>
                                            </div>
                                        </div>
                                        <div id="divPremiumRates" style="display: ">
                                            <div class="h7">
                                            </div>
                                            <div>
                                                <div class="w220 left align_right pad_6t pad_7xr">
                                                    Premium BEFORE NCD Protection:</div>
                                                <div class="left pad_8yr" id="div3">
                                                    <asp:Label ID="lblPremiumBeforeNCDPro" Font-Bold="true" runat="server"></asp:Label>
                                                </div>
                                            </div>
                                            <div class="h7">
                                            </div>
                                            <div>
                                                <div class="w220 left align_right pad_6t pad_7xr">
                                                    Premium AFTER NCD Protection:</div>
                                                <div class="left pad_8yr" id="div4">
                                                    <asp:Label ID="lblPremiumAfterNCDPro" Font-Bold="true" runat="server"></asp:Label>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="h10">
                                        </div>
                                    </div>
                                    <div class="bottom">
                                    </div>
                                </div>
                                <div class="seperator">
                                </div>

                                <script type="text/javascript">
                                    IncreaseProgress(75);
                                </script>

                                <div class="norm" id="divDeclarationHeader">
                                    <div class="top">
                                    </div>
                                    <div class="body">
                                        <div class="pad_15x">
                                            <h1>
                                                Declaration and Authorisation</h1>
                                            <div class="seperator">
                                            </div>
                                        </div>
                                        <div style="display: " id="divDeclaration" class="pad_15x">
                                            <p>
                                                I DO HEREBY DECLARE AND WARRANT the answers given above are in every respect true
                                                and correct and I have not withheld any information likely to affect acceptance
                                                of this Proposal, and agree that this Proposal Declaration shall be the basis of
                                                the Contract between the Company and myself, and I further agree to accept the Company's
                                                Policy subject to the terms, exclusions and conditions to be expressed therein,
                                                endorsed thereon or attached thereto.I hereby undertake to pay any difference arising
                                                from a discrepancy in the NCD declared, failing which the policy shall be cancelled
                                                by the Company.
                                            </p>
                                            <div class="seperator">
                                            </div>
                                            <div style="display: none">
                                                <asp:TextBox ID="txtGeneralInfo" runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="rfvGeneralInfo" runat="server" CssClass="validationErrorControl"
                                                    Display="Dynamic" ErrorMessage="Unable to proceed. Please <a href='/car-insurance/results-new.aspx'>click here </a>to go back to select another insurer."
                                                    ControlToValidate="txtGeneralInfo" ValidationGroup="proposal" Text=""></asp:RequiredFieldValidator>
                                            </div>
                                            <asp:CheckBox onclick="CheckAgreed()" ID="chkAgreed" runat="server" Text="" />
                                            <span><b>I agree to the above statement.</b></span> <span>
                                                <asp:RequiredFieldValidator ControlToValidate="txtAgreed" ID="rfvAgreed" runat="server"
                                                    CssClass="validationErrorControl" ErrorMessage="You must agree to the Declaration & Authorization below."
                                                    Text="You must agree to the Declaration & Authorization." ValidationGroup="proposal"></asp:RequiredFieldValidator>
                                            </span>
                                            <div style="display: none">
                                                <asp:TextBox ID="txtAgreed" runat="server" />

                                                <script type="text/javascript">
                                                    function CheckAgreed() {
                                                        //alert('rdoYesOffFDCom');
                                                        var ctrlTxt = document.getElementById('<%=txtAgreed.ClientID%>');
                                                        var ctrlY = document.getElementById('<%=chkAgreed.ClientID%>');
                                                        var valCtrl = document.getElementById('<%=rfvAgreed.ClientID%>');
                                                        if (ctrlY.checked == true) {
                                                            ctrlTxt.value = '1';
                                                            valCtrl.style.visibility = 'hidden';
                                                            //ShowHideDiv('divPaymentMode', true);

                                                            var ncdvalue = document.getElementById('<%=inputNCD.ClientID%>');
                                                            var lblClaim = document.getElementById("<%=inputClaim.ClientID%>");

                                                            //                                                    if ((ncdvalue.value == '30' || ncdvalue.value == '40' || ncdvalue.value == '50') && lblClaim.value == 'No')
                                                            //                                                        ShowHideDiv('divNCDProtection', true);
                                                            //                                                    else
                                                            //                                                        ShowHideDiv('divNCDProtection', false);
                                                        }
                                                        else {
                                                            ctrlTxt.value = '';
                                                            ShowHideDiv('divNCDProtection', false);
                                                            //ShowHideDiv('divPaymentMode', false);
                                                        }
                                                    }
                                                </script>

                                            </div>
                                            <div id="divAgentSave" runat="server" visible="false">
                                                <br />
                                                agent option >>
                                                <asp:ImageButton ID="imgbtnSave" runat="server" ImageUrl="~/images/forms_proposal/button/save.png"
                                                    OnClick="imgbtnSave_Click" ImageAlign="Bottom" ValidationGroup="tempsaveproposal" OnClientClick="LoadValidationErrorCss();" />
                                                      <asp:Label ID="lblMessageSave" runat="server" ForeColor="Red"></asp:Label>
                                                <asp:ValidationSummary ID="ValidationSummary1" CssClass="validation_div" runat="server"
                                                    ValidationGroup="tempsaveproposal" HeaderText="Please complete the form"  />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="bottom">
                                    </div>
                                </div>
                                <div class="seperator">
                                </div>
                                <div class="hilite" style="display: " id="divPaymentMode">
                                    <div class="top">
                                    </div>
                                    <div class="body_in pad_15x">
                                        <h1>
                                            Payment Mode</h1>
                                        <div class="seperator">
                                        </div>
                                        <div id="divPayment">
                                            <div class="w220 left align_right pad_6t pad_7xr">
                                                <span class="red">*</span>Payment Type:</div>
                                            <div class="left">
                                                <span id="divCreditCard">
                                                    <asp:RadioButton ID="rdoCreditCard" onclick="ShowHideDiv('divCashPolicy',false);CheckPaymentType();"
                                                        Text="CreditCard" runat="server" GroupName="paymode" Checked="true" />
                                                </span><span>&nbsp;&nbsp;</span> <span id="divCash">
                                                    <asp:RadioButton ID="rdoCash" onclick="ShowHideDiv('divCashPolicy',true);CheckPaymentType();"
                                                        Text="Cash" runat="server" GroupName="paymode" />
                                                </span>
                                            </div>
                                        </div>
                                        <div class="h10">
                                        </div>
                                        <div id="divCashPolicy" style="display: ">
                                            Upon submission, please allow 1-2 working days for Liberty Insurance to process
                                            proposal form. Liberty Insurance will inform you via telephone.<br />
                                            You will then have to come down in person to make payment before Liberty Insurance
                                            issues the CI documents.
                                        </div>
                                        <div id="divCreditCardPayment" style="display: ">
                                            I / We authorised <b>Liberty Insurance Pte. Limited</b> to debit the premium amount
                                            due in connection with above insurance policy to my nominated Credit Card Account.
                                            Where a third party Credit Card is used, I declared that the cardholder has authorised
                                            andconsented to its use.
                                            <div class="seperator">
                                            </div>
                                            <div id="divPaymentType">
                                                <div class="w220 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span>Installment Type:</div>
                                                <div class="left">
                                                    <span id="divAnnualPayment">
                                                        <asp:RadioButton ID="rdoAnnualPayment" onclick="ShowHideDiv('divMonthlyPolicy',false);CheckInstallmentType();"
                                                            Text="Annual" runat="server" GroupName="paymenttype" Checked="true" />
                                                    </span><span>&nbsp;&nbsp;</span> <span id="divMonthlyPayment">
                                                        <asp:RadioButton ID="rdoMonthlyPayment6Months" onclick="ShowHideDiv('divMonthlyPolicy',true);CheckInstallmentType();"
                                                            Text="6 monthly installments" runat="server" GroupName="paymenttype" />
                                                            &nbsp;&nbsp;
                                                        <asp:RadioButton ID="rdoMonthlyPayment" onclick="ShowHideDiv('divMonthlyPolicy',true);CheckInstallmentType();"
                                                            Text="12 monthly installments" runat="server" GroupName="paymenttype" />
                                                    </span>
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="divMonthlyPolicy" style="display: ">
                                                Please note that your credit limit will be reduced by the total EPP purchase amount
                                                and a $100 administration fee will be levied for cancellation of the EPP plan.
                                            </div>
                                            <div>
                                                <div id="divNameoftheCard">
                                                    <div class="w220 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span> Cardholder's Name:</div>
                                                    <div class="left">
                                                        <asp:TextBox ID="txtNameoftheCard" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="rfvNameoftheCard" ControlToValidate="txtNameoftheCard"
                                                            ErrorMessage="" ValidationGroup="proposal" CssClass="validationErrorControl"
                                                            runat="server"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                                <div class="h10">
                                                </div>
                                                <div id="divIssuingBank">
                                                    <div class="w220 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span> Issuing Bank:</div>
                                                    <div class="left">
                                                        <div id="divIssuingBankDropDown">
                                                            <asp:DropDownList ID="ddlIssuingBank" onclick="CheckIssuingBankDropDown();" runat="server">
                                                                <asp:ListItem Text="Citibank" Value="Citibank" />
                                                                <asp:ListItem Text="Standard Chartered" Value="Standard Chartered" />
                                                                <asp:ListItem Text="DBS" Value="DBS" />
                                                                <asp:ListItem Text="POSB" Value="POSB" />
                                                            </asp:DropDownList>
                                                        </div>
                                                        <div id="divIssuingBankText">
                                                            <asp:TextBox ID="txtIssuingBank" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="rfvIssuingBank" ControlToValidate="txtIssuingBank"
                                                                ErrorMessage="" ValidationGroup="proposal" CssClass="validationErrorControl"
                                                                runat="server"></asp:RequiredFieldValidator>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="h10">
                                                </div>
                                                <div id="divCardNo">
                                                    <div class="w220 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span> Credit Card Number:</div>
                                                    <div class="left">
                                                        <asp:TextBox ID="txtCardNo1" runat="server" MaxLength="4" size="8"></asp:TextBox>
                                                        <asp:TextBox ID="txtCardNo2" runat="server" MaxLength="4" size="8"></asp:TextBox>
                                                        <asp:TextBox ID="txtCardNo3" runat="server" MaxLength="4" size="8"></asp:TextBox>
                                                        <asp:TextBox ID="txtCardNo4" runat="server" MaxLength="4" size="8"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="rfvCardNo1" ControlToValidate="txtCardNo1" ErrorMessage=""
                                                            ValidationGroup="proposal" CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="revCardNo1" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="proposal" ValidationExpression="[0-9]{4}" ControlToValidate="txtCardNo1"></asp:RegularExpressionValidator>
                                                        <asp:RequiredFieldValidator ID="rfvCardNo2" ControlToValidate="txtCardNo2" ErrorMessage=""
                                                            ValidationGroup="proposal" CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="revCardNo2" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="proposal" ValidationExpression="[0-9]{4}" ControlToValidate="txtCardNo2"></asp:RegularExpressionValidator>
                                                        <asp:RequiredFieldValidator ID="rfvCardNo3" ControlToValidate="txtCardNo3" ErrorMessage=""
                                                            ValidationGroup="proposal" CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="revCardNo3" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="proposal" ValidationExpression="[0-9]{4}" ControlToValidate="txtCardNo3"></asp:RegularExpressionValidator>
                                                        <asp:RequiredFieldValidator ID="rfvCardNo4" ControlToValidate="txtCardNo4" ErrorMessage=""
                                                            ValidationGroup="proposal" CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="revCardNo4" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="proposal" ValidationExpression="[0-9]{4}" ControlToValidate="txtCardNo4"></asp:RegularExpressionValidator>
                                                        <asp:CustomValidator CssClass="validationErrorControl" ControlToValidate="txtCreditCardValid"
                                                            ValidationGroup="proposal" ID="csvCreditCardValid" runat="server" ErrorMessage="Credit Card number not valid."
                                                            Text="" OnServerValidate="csvCreditCardValid_ServerValidate"></asp:CustomValidator>
                                                        <span style="display: none">
                                                            <asp:TextBox ID="txtCreditCardValid" Text="Valid" runat="server"></asp:TextBox>
                                                        </span>
                                                    </div>
                                                </div>
                                                <div class="h10">
                                                </div>
                                                <div id="divCardExpiry">
                                                    <div class="w220 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span> Card Expiry Date:</div>
                                                    <div class="left">
                                                        <asp:DropDownList ID="ddlCardExpiryMonth" runat="server">
                                                            <asp:ListItem Selected="True" Value="-1">mm</asp:ListItem>
                                                            <asp:ListItem Value="01">01</asp:ListItem>
                                                            <asp:ListItem Value="02">02</asp:ListItem>
                                                            <asp:ListItem Value="03">03</asp:ListItem>
                                                            <asp:ListItem Value="04">04</asp:ListItem>
                                                            <asp:ListItem Value="05">05</asp:ListItem>
                                                            <asp:ListItem Value="06">06</asp:ListItem>
                                                            <asp:ListItem Value="07">07</asp:ListItem>
                                                            <asp:ListItem Value="08">08</asp:ListItem>
                                                            <asp:ListItem Value="09">09</asp:ListItem>
                                                            <asp:ListItem Value="10">10</asp:ListItem>
                                                            <asp:ListItem Value="11">11</asp:ListItem>
                                                            <asp:ListItem Value="12">12</asp:ListItem>
                                                        </asp:DropDownList>
                                                        <asp:DropDownList ID="ddlCardExpiryYear" runat="server">
                                                        </asp:DropDownList>
                                                        <asp:RequiredFieldValidator ID="rfvCardExpiryMonth" ControlToValidate="ddlCardExpiryMonth"
                                                            ErrorMessage="" ValidationGroup="proposal" InitialValue="-1" Text="" CssClass="validationErrorControl"
                                                            runat="server"></asp:RequiredFieldValidator>
                                                        <asp:RequiredFieldValidator ID="rfvCardExpiryYear" ControlToValidate="ddlCardExpiryYear"
                                                            ErrorMessage="" ValidationGroup="proposal" InitialValue="-1" Text="" CssClass="validationErrorControl"
                                                            runat="server"></asp:RequiredFieldValidator>
                                                        <asp:CustomValidator CssClass="validationErrorControl" ControlToValidate="txtCCExpiredValid"
                                                            ValidationGroup="proposal" ID="csvCCExpiredValid" runat="server" ErrorMessage="Credit Card expire not valid."
                                                            Text="" OnServerValidate="csvCCExpiredValid_ServerValidate"></asp:CustomValidator>
                                                        <span style="display: none">
                                                            <asp:TextBox ID="txtCCExpiredValid" Text="Valid" runat="server"></asp:TextBox>
                                                        </span>
                                                    </div>
                                                </div>
                                                <div class="h10">
                                                </div>
                                                <div id="divCardType">
                                                    <div class="w220 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span> Card Type:</div>
                                                    <div class="left">
                                                        <span id="divVisa">
                                                            <asp:RadioButton onclick="ValCheckCardType();CheckCardTypeValidationCss();" ID="rdoVisa"
                                                                runat="server" GroupName="cardtype" />
                                                            &nbsp;<asp:Label ID="lblVisa" runat="server" Text="VISA"></asp:Label>
                                                        </span><span>&nbsp;&nbsp;</span> <span id="divMasterCard">
                                                            <asp:RadioButton onclick="ValCheckCardType();CheckCardTypeValidationCss();" ID="rdoMasterCard"
                                                                runat="server" GroupName="cardtype" />
                                                            &nbsp;<asp:Label ID="lblMasterCard" runat="server" Text="MasterCard"></asp:Label>
                                                        </span><span style="display: none">
                                                            <asp:TextBox ID="txtCardType" runat="server"></asp:TextBox></span>
                                                        <asp:RequiredFieldValidator ID="rfvCardType" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage="" ControlToValidate="txtCardType" ValidationGroup="proposal"
                                                            Text=""></asp:RequiredFieldValidator>
                                                        <div class="clear">
                                                        </div>
                                                        <em class="note">(Only VISA or Master Credit Card is acceptable for premium payment)</em>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="seperator">
                                            </div>
                                            By submitting this proposal form, I am aware that any refund will be paid by cheque
                                            the Insured/Policyholder. <b>Liberty Insurance Pte. Limited</b> will consider all
                                            declared information as true and correct. This Credit Card payment is subject to
                                            the terms of the Credit Card Agreement.
                                        </div>
                                    </div>
                                    <div class="bottom">
                                    </div>
                                </div>
                                <div class="seperator">
                                </div>
                                <div class="center align_center" id="divFormButtons">
                                    <asp:ImageButton ID="ibtSubmit" runat="server" ValidationGroup="proposal" ImageUrl="~/images/forms_proposal/button/submit.png"
                                        OnClientClick="LoadValidationErrorCss();CheckOptionValidationCss();ShowHideDiv('divDeclaration',true);CheckGeneralInformation();return SubmitConfirm();"
                                        class="button" OnClick="ibtSubmit_Click"></asp:ImageButton>
                                    <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
                                    <div class="note">
                                        <img src="/images/forms_proposal/icon/warning.png" width="21" height="18" alt="Note"
                                            style="vertical-align: middle; padding-bottom: 3px" />
                                        <strong>Note</strong>, by clicking on the SUBMIT button you agree to our Website's
                                        <a href="/terms/" target="_blank">Terms &amp; Conditions</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="bottom">
                        </div>
                    </div>
                </div>
                <div class="seperator">
                </div>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        IncreaseProgress(90);
    </script>

    <div id="footer">
        <div id="nav_bottom" class="pad_7t">
            <div class="left pad_8yr">
                <%--                <asp:ImageButton ID="imgbtnBackBottom" runat="server" ImageUrl="/images/forms_proposal/button/back.png"
                    OnClick="imgbtnBackTop_Click" OnClientClick="return confirm('Are you sure to go back?');" />--%>
                <a href="/car-insurance/results.aspx" id="A1" onclick="return confirm('Are you sure to go back?');">
                    <img src="/images/forms_proposal/button/back.png" alt="Back" /></a>
            </div>
            <div class="right pad_8yr">
                <a href="#" onclick="window.print()">
                    <img src="/images/forms_proposal/button/print.png" alt="Print" /></a>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        function ShowHideDiv(divName, varOnOff) {
            if (varOnOff) {
                document.getElementById(divName).style.display = "";
            }
            else {
                document.getElementById(divName).style.display = "none";
            }
        }

        function ShowInsurerStatus() {
            var Insurer = document.getElementById('<%=ddlCurInsuranceCompany.ClientID%>').value;
            //alert(Insurer);
            if (Insurer != '177') {
                ShowHideDiv('divOtherInsurence', true);
                //ValidatorEnable(ValOtherInsurence, true);
                ValidatorEnable(document.getElementById('<%=rfvCurInsuranceCompany.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=rfvCurInsuranceCompanySave.ClientID%>'), true);                
                ValidatorEnable(document.getElementById('<%=rfvInsVehicleNo.ClientID%>'), true);
                IsEnableDateValidation('<%=ddlDOCancellation.ClientID%>', true);
            }
            else {
                ShowHideDiv('divOtherInsurence', false);
                //ValidatorEnable(ValOtherInsurence, false);
                ValidatorEnable(document.getElementById('<%=rfvCurInsuranceCompany.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=rfvCurInsuranceCompanySave.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=rfvInsVehicleNo.ClientID%>'), false);
                IsEnableDateValidation('<%=ddlDOCancellation.ClientID%>', false);
            }
        }

        function ShowHideNCDReasonStatus() {
            var ncdreason = document.getElementById('<%=ddlNCDReason.ClientID%>').value;
            var valNcdreason = document.getElementById('<%=rfvNCDReason.ClientID%>');
            var valNcdreasonSave = document.getElementById('<%=rfvNCDReasonSave.ClientID%>');
            
            if (ncdreason == 'Others') {
                ShowHideDiv('divNCDReason', true);
                ValidatorEnable(valNcdreason, true);
                ValidatorEnable(valNcdreasonSave, true);
            }
            else {
                ShowHideDiv('divNCDReason', false);
                ValidatorEnable(valNcdreason, false);
                ValidatorEnable(valNcdreasonSave, false);
            }
        }

        function CheckOptionValidationCss() {
            //CheckOtherInsurenceValidationCss();
            CheckVechicleModificationValidationCss();
            CheckAccessoriesValidationCss();
            CheckConvictedValidationCss();
            CheckDermeritPointsValidationCss();
            CheckPhysicalimpairmentValidationCss();
            CheckInsuranceterminatedValidationCss();
            CheckInsuranceRefusedValidationCss()
            CheckHirePurchaseValidationCss();
            CheckCardTypeValidationCss();
            ShowHideNCDReasonStatus();
            NCDProtection();
            ShowInsurerStatus();
            //EnableDisableDriverValidations();
        }

        function CheckValidationCss(divYes, divNo, ctrlText, valCtrl) {
            ShowValidationEffectOption(divYes, divNo, ctrlText, valCtrl);
            return true;
        }

        //        function CheckOtherInsurenceValidationCss() {
        //            CheckValidationCss('divYesOtherInsurence', 'divNoOtherInsurence', '<=txtOI.ClientID>', '<=rfvOI.ClientID>');

        //            var ncdvalue = document.getElementById('<%=inputNCD.ClientID%>');

        //            if (ncdvalue.value == '30' || ncdvalue.value == '40' || ncdvalue.value == '50') {
        //                ShowHideDiv('divNCDProtectionHeader', true);
        //                ShowHideDiv('divNCDProtection', true);
        //            }
        //            else {
        //                ShowHideDiv('divNCDProtectionHeader', false);
        //                ShowHideDiv('divNCDProtection', false);
        //            }
        //        }

        function NCDProtection() {
            var ncdvalue = document.getElementById('<%=inputNCD.ClientID%>');

            if (ncdvalue.value == '30' || ncdvalue.value == '40' || ncdvalue.value == '50') {
                ShowHideDiv('divNCDProtectionHeader', true);
                ShowHideDiv('divNCDProtection', true);
            }
            else {
                ShowHideDiv('divNCDProtectionHeader', false);
                ShowHideDiv('divNCDProtection', false);
            }
        }

        function ValOtherInsurence(varOnOff) {
            //var txtCtrl = document.getElementById("<=txtOI.ClientID>");
            //txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvCurInsuranceCompany.ClientID%>'), true);
            ValidatorEnable(document.getElementById('<%=rfvInsVehicleNo.ClientID%>'), varOnOff);
            IsEnableDateValidation('<%=ddlDOCancellation.ClientID%>', varOnOff);
            //ValidatorEnable(document.getElementById('<=rfvNCD.ClientID>'), varOnOff);
        }

        function CheckVechicleModificationValidationCss() {
            CheckValidationCss('divYesVechicleModification', 'divNoVechicleModification', '<%=txtVechicleModification.ClientID%>', '<%=rfvVechicleModification.ClientID%>');
        }

        function ValVechicleModification(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtVechicleModification.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvVMReason.ClientID%>'), varOnOff);
        }

        function CheckAccessoriesValidationCss() {
            CheckValidationCss('divYesAccessories', 'divNoAccessories', '<%=txtAccess.ClientID%>', '<%=rfvAccess.ClientID%>');
        }

        function ValAccessories(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtAccess.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvAccessories.ClientID%>'), varOnOff);
        }

        function CheckConvictedValidationCss() {
            CheckValidationCss('divYesConvicted', 'divNoConvicted', '<%=txtConvicted.ClientID%>', '<%=rfvConvicted.ClientID%>');
        }

        function ValConvicted(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtConvicted.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvConvictedReason.ClientID%>'), varOnOff);
        }

        function CheckDermeritPointsValidationCss() {
            CheckValidationCss('divYesDermeritPoints', 'divNoDermeritPoints', '<%=txtDermeritPoints.ClientID%>', '<%=rfvDermeritPoints.ClientID%>');
        }

        function ValDermeritPoints(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtDermeritPoints.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvDrivername1.ClientID%>'), varOnOff);
            ValidatorEnable(document.getElementById('<%=rfvTotalpoints1.ClientID%>'), varOnOff);
            IsEnableDateValidation('<%=ddlDODemerit1.ClientID%>', varOnOff);
            ValidatorEnable(document.getElementById('<%=rfvOffencetype1.ClientID%>'), varOnOff);
            CheckDriver2Validation();
            CheckDriver3Validation();
            CheckDriver4Validation();
            CheckDriver5Validation();
            CheckDriver6Validation();
        }

        function CheckPhysicalimpairmentValidationCss() {
            CheckValidationCss('divYesPhysicalimpairment', 'divNoPhysicalimpairment', '<%=txtPhysicalimpairment.ClientID%>', '<%=rfvPhysicalimpairment.ClientID%>');
        }

        function ValPhysicalimpairment(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtPhysicalimpairment.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvPIReason.ClientID%>'), varOnOff);
        }

        function CheckInsuranceterminatedValidationCss() {
            CheckValidationCss('divYesInsuranceterminated', 'divNoInsuranceterminated', '<%=txtInsuranceterminated.ClientID%>', '<%=rfvInsuranceterminated.ClientID%>');
        }

        function CheckInsuranceRefusedValidationCss() {
            CheckValidationCss('divYesRefused', 'divNoRefused', '<%=txtRefused.ClientID%>', '<%=rfvRefused.ClientID%>');
        }

        function ValInsuranceterminated(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtInsuranceterminated.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvITReason.ClientID%>'), varOnOff);
        }

        function ValInsuranceRefused(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtRefused.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvRefusedReason.ClientID%>'), varOnOff);
        }

        function CheckHirePurchaseValidationCss() {
            CheckValidationCss('divYesHirePurchase', 'divNoHirePurchase', '<%=txtHirePurchase.ClientID%>', '<%=rfvHirePurchase.ClientID%>');
        }

        function ValHirePurchase(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtHirePurchase.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvHirePurchaseCompany.ClientID%>'), varOnOff);
        }


        function CheckCardTypeValidationCss() {
            CheckValidationCss('divVisa', 'divMasterCard', '<%=txtCardType.ClientID%>', '<%=rfvCardType.ClientID%>');
        }

        function ValCheckCardType(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtCardType.ClientID%>");
            txtCtrl.value = "1";
        }

        function SetPremiumValue() {

            if (document.getElementById('<%=rdoYes.ClientID%>').checked == true)
                ShowHideDiv('divPremiumRates', true);
            else
                ShowHideDiv('divPremiumRates', false);

        }

        function CheckDriver2Validation() {
            var txtDriver = document.getElementById('<%=txtDrivername2.ClientID%>');
            //alert(txtDriver.value.length);
            if (txtDriver.value.length > 0)
                IsEnableDateValidation('<%=ddlDODemerit2.ClientID%>', true);
            else
                IsEnableDateValidation('<%=ddlDODemerit2.ClientID%>', false);
        }

        function CheckDriver2Validation() {
            var txtDriver = document.getElementById('<%=txtDrivername2.ClientID%>');
            //alert(txtDriver.value.length);
            if (txtDriver.value.length > 0)
                IsEnableDateValidation('<%=ddlDODemerit2.ClientID%>', true);
            else
                IsEnableDateValidation('<%=ddlDODemerit2.ClientID%>', false);
        }

        function CheckDriver3Validation() {
            var txtDriver = document.getElementById('<%=txtDrivername3.ClientID%>');
            if (txtDriver.value.length > 0)
                IsEnableDateValidation('<%=ddlDODemerit3.ClientID%>', true);
            else
                IsEnableDateValidation('<%=ddlDODemerit3.ClientID%>', false);
        }

        function CheckDriver4Validation() {
            var txtDriver = document.getElementById('<%=txtDrivername4.ClientID%>');
            if (txtDriver.value.length > 0)
                IsEnableDateValidation('<%=ddlDODemerit4.ClientID%>', true);
            else
                IsEnableDateValidation('<%=ddlDODemerit4.ClientID%>', false);
        }

        function CheckDriver5Validation() {
            var txtDriver = document.getElementById('<%=txtDrivername5.ClientID%>');
            if (txtDriver.value.length > 0)
                IsEnableDateValidation('<%=ddlDODemerit5.ClientID%>', true);
            else
                IsEnableDateValidation('<%=ddlDODemerit5.ClientID%>', false);
        }

        function CheckDriver6Validation() {
            var txtDriver = document.getElementById('<%=txtDrivername6.ClientID%>');
            if (txtDriver.value.length > 0)
                IsEnableDateValidation('<%=ddlDODemerit6.ClientID%>', true);
            else
                IsEnableDateValidation('<%=ddlDODemerit6.ClientID%>', false);
        }


        //        function EnableDisableDriverValidations() {
        //            var drivercount = document.getElementById('<%=txtDriverCount.ClientID%>').value;
        //            //alert(drivercount); 
        //            if (drivercount == 0) {
        //                ValidationDriver1(false);
        //                ValidationDriver2(false);
        //                ValidationDriver3(false);
        //                ValidationDriver4(false);
        //                ValidationDriver5(false);
        //            }
        //            else if (drivercount == 1) {
        //                ValidationDriver1(true);
        //                ValidationDriver2(false);
        //                ValidationDriver3(false);
        //                ValidationDriver4(false);
        //                ValidationDriver5(false);
        //            }
        //            else if (drivercount == 2) {
        //                ValidationDriver1(true);
        //                ValidationDriver2(true);
        //                ValidationDriver3(false);
        //                ValidationDriver4(false);
        //                ValidationDriver5(false);
        //            }
        //            else if (drivercount == 3) {
        //                ValidationDriver1(true);
        //                ValidationDriver2(true);
        //                ValidationDriver3(true);
        //                ValidationDriver4(false);
        //                ValidationDriver5(false);
        //            }
        //            else if (drivercount == 4) {
        //                ValidationDriver1(true);
        //                ValidationDriver2(true);
        //                ValidationDriver3(true);
        //                ValidationDriver4(true);
        //                ValidationDriver5(false);
        //            }
        //            else if (drivercount == 5) {
        //                ValidationDriver1(true);
        //                ValidationDriver2(true);
        //                ValidationDriver3(true);
        //                ValidationDriver4(true);
        //                ValidationDriver5(true);
        //            }
        //        }

        //        function ValidationDriver1(varOnOff) {
        //            //alert(1);
        //            //alert(varOnOff);
        //            ValidatorEnable(document.getElementById('<=rfvDriverSurName1.ClientID>'), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverGender1.ClientID>' + "_rfvGender"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdType1.ClientID>' + "_rfvIDType"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber1.ClientID>' + "_csvIdPrefix"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber1.ClientID>' + "_rfvIdNumber"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber1.ClientID>' + "_revIdNumberLength"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber1.ClientID>' + "_csvIdNumber"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber1.ClientID>' + "_csvIdPostfix"), varOnOff);
        //        }

        //        function ValidationDriver2(varOnOff) {
        //            //alert(2);
        //            //alert(varOnOff);
        //            ValidatorEnable(document.getElementById('<=rfvDriverSurName2.ClientID>'), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverGender2.ClientID>' + "_rfvGender"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdType2.ClientID>' + "_rfvIDType"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber2.ClientID>' + "_csvIdPrefix"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber2.ClientID>' + "_rfvIdNumber"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber2.ClientID>' + "_revIdNumberLength"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber2.ClientID>' + "_csvIdNumber"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber2.ClientID>' + "_csvIdPostfix"), varOnOff);
        //        }

        //        function ValidationDriver3(varOnOff) {
        //            //alert(3);
        //            //alert(varOnOff);
        //            ValidatorEnable(document.getElementById('<=rfvDriverSurName3.ClientID>'), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverGender3.ClientID>' + "_rfvGender"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdType3.ClientID>' + "_rfvIDType"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber3.ClientID>' + "_csvIdPrefix"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber3.ClientID>' + "_rfvIdNumber"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber3.ClientID>' + "_revIdNumberLength"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber3.ClientID>' + "_csvIdNumber"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber3.ClientID>' + "_csvIdPostfix"), varOnOff);
        //        }

        //        function ValidationDriver4(varOnOff) {
        //            //alert(4);
        //            //alert(varOnOff);
        //            ValidatorEnable(document.getElementById('<=rfvDriverSurName4.ClientID>'), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverGender4.ClientID>' + "_rfvGender"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdType4.ClientID>' + "_rfvIDType"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber4.ClientID>' + "_csvIdPrefix"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber4.ClientID>' + "_rfvIdNumber"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber4.ClientID>' + "_revIdNumberLength"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber4.ClientID>' + "_csvIdNumber"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber4.ClientID>' + "_csvIdPostfix"), varOnOff);
        //        }

        //        function ValidationDriver5(varOnOff) {
        //            //alert(5);
        //            //alert(varOnOff);
        //            ValidatorEnable(document.getElementById('<=rfvDriverSurName5.ClientID>'), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverGender5.ClientID>' + "_rfvGender"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdType5.ClientID>' + "_rfvIDType"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber5.ClientID>' + "_csvIdPrefix"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber5.ClientID>' + "_rfvIdNumber"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber5.ClientID>' + "_revIdNumberLength"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber5.ClientID>' + "_csvIdNumber"), varOnOff);
        //            ValidatorEnable(document.getElementById('<=ddlDriverIdNumber5.ClientID>' + "_csvIdPostfix"), varOnOff);
        //        }


        function CheckDriverSalGenderValid1(source, arguments) {
            var ctrlsal = document.getElementById('<%=ddlDriverSalutation1.ClientID%>' + '_ddlSal');
            var ctrlgender = document.getElementById('<%=ddlDriverGender1.ClientID%>' + '_ddlGender');

            var sal = ctrlsal.value;
            var gender = ctrlgender.value;
            var result = true;
            if (gender == 'M') {
                if (sal == 'Ms' || sal == 'Miss' || sal == 'Mdm' || sal == 'Mrs') {
                    result = false;
                }
            }
            else if (gender == 'F') {
                if (sal == 'Mr') {
                    result = false;
                }
            }

            if (result == false) {
                ctrlsal.style.backgroundColor = '#fcc';
                ctrlsal.style.border = 'Solid 1px #f00';
            }
            else {
                ctrlsal.style.backgroundColor = '';
                ctrlsal.style.border = '';
            }
            arguments.IsValid = result;
        }

        var hookAVal = false;
        function HookDriverValidation1() {
            if (hookAVal == false) {
                prefix = "<%=ddlDriverSalutation1.ClientID%>";
                var ddlSal = prefix + "_ddlSal";
                prefix = "<%=ddlDriverGender1.ClientID%>";
                var ddlGender = prefix + "_ddlGender";
                var valCtrl = "<%=csvDriverSalGender1.ClientID%>";
                ValidatorHookupControlID(ddlSal, document.getElementById(valCtrl));
                ValidatorHookupControlID(ddlGender, document.getElementById(valCtrl));
                hookAVal = true;
            }
        }

        function CheckDriverSalGenderValid2(source, arguments) {
            var ctrlsal = document.getElementById('<%=ddlDriverSalutation2.ClientID%>' + '_ddlSal');
            var ctrlgender = document.getElementById('<%=ddlDriverGender2.ClientID%>' + '_ddlGender');

            var sal = ctrlsal.value;
            var gender = ctrlgender.value;
            var result = true;
            if (gender == 'M') {
                if (sal == 'Ms' || sal == 'Miss' || sal == 'Mdm' || sal == 'Mrs') {
                    result = false;
                }
            }
            else if (gender == 'F') {
                if (sal == 'Mr') {
                    result = false;
                }
            }

            if (result == false) {
                ctrlsal.style.backgroundColor = '#fcc';
                ctrlsal.style.border = 'Solid 1px #f00';
            }
            else {
                ctrlsal.style.backgroundColor = '';
                ctrlsal.style.border = '';
            }
            arguments.IsValid = result;
        }

        var hookAVal = false;
        function HookDriverValidation2() {
            if (hookAVal == false) {
                prefix = "<%=ddlDriverSalutation2.ClientID%>";
                var ddlSal = prefix + "_ddlSal";
                prefix = "<%=ddlDriverGender2.ClientID%>";
                var ddlGender = prefix + "_ddlGender";
                var valCtrl = "<%=csvDriverSalGender2.ClientID%>";
                ValidatorHookupControlID(ddlSal, document.getElementById(valCtrl));
                ValidatorHookupControlID(ddlGender, document.getElementById(valCtrl));
                hookAVal = true;
            }
        }

        function CheckDriverSalGenderValid3(source, arguments) {
            var ctrlsal = document.getElementById('<%=ddlDriverSalutation3.ClientID%>' + '_ddlSal');
            var ctrlgender = document.getElementById('<%=ddlDriverGender3.ClientID%>' + '_ddlGender');

            var sal = ctrlsal.value;
            var gender = ctrlgender.value;
            var result = true;
            if (gender == 'M') {
                if (sal == 'Ms' || sal == 'Miss' || sal == 'Mdm' || sal == 'Mrs') {
                    result = false;
                }
            }
            else if (gender == 'F') {
                if (sal == 'Mr') {
                    result = false;
                }
            }

            if (result == false) {
                ctrlsal.style.backgroundColor = '#fcc';
                ctrlsal.style.border = 'Solid 1px #f00';
            }
            else {
                ctrlsal.style.backgroundColor = '';
                ctrlsal.style.border = '';
            }
            arguments.IsValid = result;
        }

        var hookAVal = false;
        function HookDriverValidation3() {
            if (hookAVal == false) {
                prefix = "<%=ddlDriverSalutation3.ClientID%>";
                var ddlSal = prefix + "_ddlSal";
                prefix = "<%=ddlDriverGender3.ClientID%>";
                var ddlGender = prefix + "_ddlGender";
                var valCtrl = "<%=csvDriverSalGender3.ClientID%>";
                ValidatorHookupControlID(ddlSal, document.getElementById(valCtrl));
                ValidatorHookupControlID(ddlGender, document.getElementById(valCtrl));
                hookAVal = true;
            }
        }

        function CheckDriverSalGenderValid4(source, arguments) {
            var ctrlsal = document.getElementById('<%=ddlDriverSalutation4.ClientID%>' + '_ddlSal');
            var ctrlgender = document.getElementById('<%=ddlDriverGender4.ClientID%>' + '_ddlGender');

            var sal = ctrlsal.value;
            var gender = ctrlgender.value;
            var result = true;
            if (gender == 'M') {
                if (sal == 'Ms' || sal == 'Miss' || sal == 'Mdm' || sal == 'Mrs') {
                    result = false;
                }
            }
            else if (gender == 'F') {
                if (sal == 'Mr') {
                    result = false;
                }
            }

            if (result == false) {
                ctrlsal.style.backgroundColor = '#fcc';
                ctrlsal.style.border = 'Solid 1px #f00';
            }
            else {
                ctrlsal.style.backgroundColor = '';
                ctrlsal.style.border = '';
            }
            arguments.IsValid = result;
        }

        var hookAVal = false;
        function HookDriverValidation4() {
            if (hookAVal == false) {
                prefix = "<%=ddlDriverSalutation4.ClientID%>";
                var ddlSal = prefix + "_ddlSal";
                prefix = "<%=ddlDriverGender4.ClientID%>";
                var ddlGender = prefix + "_ddlGender";
                var valCtrl = "<%=csvDriverSalGender4.ClientID%>";
                ValidatorHookupControlID(ddlSal, document.getElementById(valCtrl));
                ValidatorHookupControlID(ddlGender, document.getElementById(valCtrl));
                hookAVal = true;
            }
        }

        function CheckDriverSalGenderValid5(source, arguments) {
            var ctrlsal = document.getElementById('<%=ddlDriverSalutation5.ClientID%>' + '_ddlSal');
            var ctrlgender = document.getElementById('<%=ddlDriverGender5.ClientID%>' + '_ddlGender');

            var sal = ctrlsal.value;
            var gender = ctrlgender.value;
            var result = true;
            if (gender == 'M') {
                if (sal == 'Ms' || sal == 'Miss' || sal == 'Mdm' || sal == 'Mrs') {
                    result = false;
                }
            }
            else if (gender == 'F') {
                if (sal == 'Mr') {
                    result = false;
                }
            }

            if (result == false) {
                ctrlsal.style.backgroundColor = '#fcc';
                ctrlsal.style.border = 'Solid 1px #f00';
            }
            else {
                ctrlsal.style.backgroundColor = '';
                ctrlsal.style.border = '';
            }
            arguments.IsValid = result;
        }

        var hookAVal = false;
        function HookDriverValidation5() {
            if (hookAVal == false) {
                prefix = "<%=ddlDriverSalutation5.ClientID%>";
                var ddlSal = prefix + "_ddlSal";
                prefix = "<%=ddlDriverGender5.ClientID%>";
                var ddlGender = prefix + "_ddlGender";
                var valCtrl = "<%=csvDriverSalGender5.ClientID%>";
                ValidatorHookupControlID(ddlSal, document.getElementById(valCtrl));
                ValidatorHookupControlID(ddlGender, document.getElementById(valCtrl));
                hookAVal = true;
            }
        }


        function CheckAll() {
            HookDriverValidation1();
            HookDriverValidation2();
            HookDriverValidation3();
            HookDriverValidation4();
            HookDriverValidation5();
        }


        function showhide(el) {

            el = document.getElementById(el);
            el.style.display = (el.style.display == "none") ? "block" : "none";

        }

        window.onload = function() {

            //showhide('divDetailsofVechicle');
            //showhide('divOtherInfo');
            showhide('divOtherInsurence');
            showhide('divVechicleModification');
            showhide('divAccessories');
            showhide('divConvicted');
            showhide('divDermeritPoints');
            showhide('divPhysicalimpairment');
            showhide('divInsuranceterminated');
            showhide('divHirePurchase');
            showhide('divNCDProtection');
            showhide('divPremiumRates');
            //showhide('divPaymentMode');
            //showhide('divDeclaration');
            //showhide('divQuoteSummery');
            showhide('divRefused');
            showhide('divCashPolicy');
            showhide('divMonthlyPolicy');
            ShowHideNCDReasonStatus();
            NCDProtection();
            ShowInsurerStatus();
            CheckPaymentType();
            CheckInstallmentType();
            //EnableDisableDriverValidations();
            onloading();
        }

        function onloading() {
            //            if (document.getElementById('<=rdoYesOtherInsurence.ClientID>').checked == true) {
            //                ShowHideDiv('divOtherInsurence', true);
            //                ValOtherInsurence(true);
            //            }
            //            else if (document.getElementById('<=rdoNoOtherInsurence.ClientID>').checked == true) {
            //                ShowHideDiv('divOtherInsurence', false);
            //                ValOtherInsurence(false);
            //            }
            //            else { ShowHideDiv('divOtherInsurence', false); }

            if (document.getElementById('<%=rdoYesVechicleModification.ClientID%>').checked == true) {
                ShowHideDiv('divVechicleModification', true);
                ValVechicleModification(true);
            }
            else if (document.getElementById('<%=rdoNoVechicleModification.ClientID%>').checked == true) {
                ShowHideDiv('divVechicleModification', false);
                ValVechicleModification(false);
            }
            else { ShowHideDiv('divVechicleModification', false); }

            if (document.getElementById('<%=rdoYesAccessories.ClientID%>').checked == true) {
                ShowHideDiv('divAccessories', true);
                ValAccessories(true);
            }
            else if (document.getElementById('<%=rdoNoAccessories.ClientID%>').checked == true) {
                ShowHideDiv('divAccessories', false);
                ValAccessories(false);
            }
            else { ShowHideDiv('divAccessories', false); }

            if (document.getElementById('<%=rdoYesConvicted.ClientID%>').checked == true) {
                ShowHideDiv('divConvicted', true);
                ValConvicted(true);
            }
            else if (document.getElementById('<%=rdoNoConvicted.ClientID%>').checked == true) {
                ShowHideDiv('divConvicted', false);
                ValConvicted(false);
            }
            else { ShowHideDiv('divConvicted', false); }

            if (document.getElementById('<%=rdoYesDermeritPoints.ClientID%>').checked == true) {
                ShowHideDiv('divDermeritPoints', true);
                ValDermeritPoints(true);
            }
            else if (document.getElementById('<%=rdoNoDermeritPoints.ClientID%>').checked == true) {
                ShowHideDiv('divDermeritPoints', false);
                ValDermeritPoints(false);
            }
            else { ShowHideDiv('divDermeritPoints', false); }

            if (document.getElementById('<%=rdoYesPhysicalimpairment.ClientID%>').checked == true) {
                ShowHideDiv('divPhysicalimpairment', true);
                ValPhysicalimpairment(true);
            }
            else if (document.getElementById('<%=rdoNoPhysicalimpairment.ClientID%>').checked == true) {
                ShowHideDiv('divPhysicalimpairment', false);
                ValPhysicalimpairment(false);
            }
            else { ShowHideDiv('divPhysicalimpairment', false); }

            if (document.getElementById('<%=rdoYesInsuranceterminated.ClientID%>').checked == true) {
                ShowHideDiv('divInsuranceterminated', true);
                ValInsuranceterminated(true);
            }
            else if (document.getElementById('<%=rdoNoInsuranceterminated.ClientID%>').checked == true) {
                ShowHideDiv('divInsuranceterminated', false);
                ValInsuranceterminated(false);
            }
            else { ShowHideDiv('divInsuranceterminated', false); }

            if (document.getElementById('<%=rdoYesRefused.ClientID%>').checked == true) {
                ShowHideDiv('divRefused', true);
                ValInsuranceRefused(true);
            }
            else if (document.getElementById('<%=rdoNoRefused.ClientID%>').checked == true) {
                ShowHideDiv('divRefused', false);
                ValInsuranceRefused(false);
            }
            else { ShowHideDiv('divRefused', false); }

            if (document.getElementById('<%=rdoYesHirePurchase.ClientID%>').checked == true) {
                ShowHideDiv('divHirePurchase', true);
                ValHirePurchase(true);
            }
            else if (document.getElementById('<%=rdoNoHirePurchase.ClientID%>').checked == true) {
                ShowHideDiv('divHirePurchase', false);
                ValHirePurchase(false);
            }
            else { ShowHideDiv('divHirePurchase', false); }

            if (document.getElementById('<%=rdoCreditCard.ClientID%>').checked == true) {
                ShowHideDiv('divCashPolicy', false);
            }
            else if (document.getElementById('<%=rdoCash.ClientID%>').checked == true) {
                ShowHideDiv('divCashPolicy', true);
            }

            if (document.getElementById('<%=rdoAnnualPayment.ClientID%>').checked == true) {
                ShowHideDiv('divMonthlyPolicy', false);
            }
            else if (document.getElementById('<%=rdoMonthlyPayment.ClientID%>').checked == true) {
                ShowHideDiv('divMonthlyPolicy', true);
            }

            if (document.getElementById('<%=chkAgreed.ClientID%>').checked == true) {
                //ShowHideDiv('divPaymentMode', true);

                //                var lblClaim = document.getElementById("<%=inputClaim.ClientID%>");

                //                if (lblClaim.value == 'No') {
                //                    ShowHideDiv('divNCDProtection', true);

                //                    if (document.getElementById('<%=rdoYes.ClientID%>').checked == true)
                //                        ShowHideDiv('divPremiumRates', true);
                //                    else
                //                        ShowHideDiv('divPremiumRates', false);

                //                }
                //                                else
                //                                    ShowHideDiv('divNCDProtection', false);

            }
            else {
                //ShowHideDiv('divPaymentMode', false);

            }

            var ncdvalue = document.getElementById('<%=inputNCD.ClientID%>');

            if (ncdvalue.value == '30' || ncdvalue.value == '40' || ncdvalue.value == '50') {
                ShowHideDiv('divNCDProtectionHeader', true);
                ShowHideDiv('divNCDProtection', true);
            }
            else {
                ShowHideDiv('divNCDProtectionHeader', false);
                ShowHideDiv('divNCDProtection', false);
            }

            CheckDriver2Validation();
            CheckDriver3Validation();
            CheckDriver4Validation();
            CheckDriver5Validation();
            CheckDriver6Validation();
        }

        function ShowDiv() {
            //ShowHideDiv('divDetailsofVechicle', true);
            //ShowHideDiv('divPaymentMode', true);
            //ShowHideDiv('divDeclaration', true);
            //onloading();
        }

        function CheckGeneralInformation() {
            var rdoYesConvicted = document.getElementById('<%=rdoYesConvicted.ClientID%>');
            var rdoYesDermeritPoints = document.getElementById('<%=rdoYesDermeritPoints.ClientID%>');
            var rdoYesPhysicalimpairment = document.getElementById('<%=rdoYesPhysicalimpairment.ClientID%>');
            var rdoYesInsuranceterminated = document.getElementById('<%=rdoYesInsuranceterminated.ClientID%>');
            var rdoYesRefused = document.getElementById('<%=rdoYesRefused.ClientID%>');
            var txtGeneralInfo = document.getElementById('<%=txtGeneralInfo.ClientID%>');
            if (rdoYesConvicted.checked || rdoYesDermeritPoints.checked || rdoYesPhysicalimpairment.checked || rdoYesInsuranceterminated.checked || rdoYesRefused.checked) {
                //alert('Unfortunately, you are unable to proceed to complete this online proposal form.');
                txtGeneralInfo.value = "";
                return false;
            }
            else {
                txtGeneralInfo.value = "1";
                return true;
            }
        }

        function restrictToNumbers(e) {
            if ([e.keyCode || e.which] == 8 || [e.keyCode || e.which] == 37 || [e.keyCode || e.which] == 9 || [e.keyCode || e.which] == 39) //this is to allow backspace
                return true;

            if ([e.keyCode || e.which] < 48 || [e.keyCode || e.which] > 57)
                e.preventDefault ? e.preventDefault() : e.returnValue = false;
        }

        function requestByPostCode() {
            try {
                var _pcode = document.getElementById('<%=txtPostCode.ClientID%>').value;
                if (_pcode.length != 6) {
                    alert('Postal code length must be 6 numbers value.');
                    document.getElementById('<%=txtAddress.ClientID%>').value = '';
                    return false;
                }
                else {
                    requestData(_pcode);
                }
            }
            catch (e) {
                alert(e.toString());
            }
        }


        function set_data(json) {
            try {
                var srcTable = $("#divAddress").empty();
                var txtAddress = document.getElementById('<%=txtAddress.ClientID%>');
                if (json == null) {
                    $("<table><tr><td>No address found!</td></tr></table>").appendTo(srcTable);
                    alert("No address found!");
                    document.getElementById('<%=txtPostCode.ClientID%>').value = "";
                    txtAddress.value = "No Address found.";
                    return;
                }
                if (json.length == 0) {
                    $("<table><tr><td>No address found!</td></tr></table>").appendTo(srcTable);
                    alert("No address found!");
                    document.getElementById('<%=txtPostCode.ClientID%>').value = "";
                    txtAddress.value = "No Address found.";
                    return;
                }

                var tbl = $("<table width='50%'>");

                var tbody = $("<tbody>");
                var no = 1;
                for (var i = 0; i < json.length; i++) {
                    var trow = $("<tr>"), rec = json[i];
                    if (rec.t != null) {

                        var ctn = rec.t + "<br>" + rec.a;

                        //$("<td>").text(no).data("col", 1).appendTo(trow);
                        $("<td>").html(ctn).data("col", 2).appendTo(trow);
                        if (i == 0) {
                            txtAddress.value = rec.t + "\n" + rec.a;
                        }
                        else {
                            txtAddress.value += "\n\n" + rec.t + "\n" + rec.a;
                        }
                        no++;
                    }
                    trow.appendTo(tbody);
                }
                tbody.appendTo(tbl);
                //alert(srcTable);
                tbl.appendTo(srcTable);
            }
            catch (e) {
                alert(e.toString());
            }
        }

        function PostCodeChange() {
            document.getElementById('divAddress').innerHTML = "Your postcode changed.";
            document.getElementById('divAddress').style.display = 'none';
            document.getElementById('<%=txtAddress.ClientID%>').innerHTML = "Your postcode changed.";
            //document.getElementById("<=btnPostCode.ClientID>").disabled = false;
        }


        function CheckPaymentType() {
            var _optCreditCard = document.getElementById('<%=rdoCreditCard.ClientID%>');
            var _optCash = document.getElementById('<%=rdoCash.ClientID%>');
            if (_optCreditCard.checked) {
                ShowHideDiv('divCreditCardPayment', true);
                ValidatorEnable(document.getElementById('<%=rfvNameoftheCard.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=rfvIssuingBank.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=rfvCardNo1.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=revCardNo1.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=rfvCardNo2.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=revCardNo2.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=rfvCardNo3.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=revCardNo3.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=rfvCardNo4.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=revCardNo4.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=csvCreditCardValid.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=rfvCardExpiryMonth.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=rfvCardExpiryYear.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=csvCCExpiredValid.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=rfvCardType.ClientID%>'), true);
            }
            else if (_optCash.checked) {
                ShowHideDiv('divCreditCardPayment', false);
                ValidatorEnable(document.getElementById('<%=rfvNameoftheCard.ClientID%>'), false);
                ValidatorEnable(document.getElementById('<%=rfvIssuingBank.ClientID%>'), false);
                ValidatorEnable(document.getElementById('<%=rfvCardNo1.ClientID%>'), false);
                ValidatorEnable(document.getElementById('<%=revCardNo1.ClientID%>'), false);
                ValidatorEnable(document.getElementById('<%=rfvCardNo2.ClientID%>'), false);
                ValidatorEnable(document.getElementById('<%=revCardNo2.ClientID%>'), false);
                ValidatorEnable(document.getElementById('<%=rfvCardNo3.ClientID%>'), false);
                ValidatorEnable(document.getElementById('<%=revCardNo3.ClientID%>'), false);
                ValidatorEnable(document.getElementById('<%=rfvCardNo4.ClientID%>'), false);
                ValidatorEnable(document.getElementById('<%=revCardNo4.ClientID%>'), false);
                ValidatorEnable(document.getElementById('<%=csvCreditCardValid.ClientID%>'), false);
                ValidatorEnable(document.getElementById('<%=rfvCardExpiryMonth.ClientID%>'), false);
                ValidatorEnable(document.getElementById('<%=rfvCardExpiryYear.ClientID%>'), false);
                ValidatorEnable(document.getElementById('<%=csvCCExpiredValid.ClientID%>'), false);
                ValidatorEnable(document.getElementById('<%=rfvCardType.ClientID%>'), false);
            }
        }
        function CheckInstallmentType() {
            var _optMonthlyInstallment = document.getElementById('<%=rdoMonthlyPayment.ClientID%>');
            var _optMonthlyInstallment6Months = document.getElementById('<%=rdoMonthlyPayment6Months.ClientID%>');
            var _optAnnualInstallment = document.getElementById('<%=rdoAnnualPayment.ClientID%>');
            var _txtIssuingBank = document.getElementById('<%=txtIssuingBank.ClientID%>');
            var _ddlIssuingBank = document.getElementById('<%=ddlIssuingBank.ClientID%>');
            if (_optAnnualInstallment.checked) {
                //alert('Annual');
                _txtIssuingBank.value = '';
                ShowHideDiv('divIssuingBankText', true);
                ShowHideDiv('divIssuingBankDropDown', false);
            }
            else if (_optMonthlyInstallment.checked || _optMonthlyInstallment6Months.checked) {
                //alert('Monthly');
                _txtIssuingBank.value = _ddlIssuingBank.value;
                ShowHideDiv('divIssuingBankText', false);
                ShowHideDiv('divIssuingBankDropDown', true);
            }
        }

        function CheckIssuingBankDropDown() {
            var _txtIssuingBank = document.getElementById('<%=txtIssuingBank.ClientID%>');
            var _ddlIssuingBank = document.getElementById('<%=ddlIssuingBank.ClientID%>');
            _txtIssuingBank.value = _ddlIssuingBank.value;
        }                                   
    </script>

    <script type="text/javascript">
        function SubmitConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('proposal')) {
                _retVal = confirm('By pressing the submit button, you authorise CompareXpress to send your personal information to the partipating merchant of your choice. You therefore exempt CompareXpress from any liability relating to the sharing of this information with our participating merchant.');
            }
            else {
                ShowDiv();
            }
            return _retVal;
        }
        IncreaseProgress(100);
        HideLoading();
    </script>

    <script src="../../includes/carinsurance/liberty.proposalform.js" type="text/javascript"></script>

</asp:Content>
